2017-01-16 05:42:34 +01:00
|
|
|
#!/bin/bash
|
2016-04-07 03:05:56 +02:00
|
|
|
|
|
|
|
repo=$1
|
2017-04-10 17:19:36 +02:00
|
|
|
if [[ "$repo" != *.git ]]; then
|
2016-04-07 03:05:56 +02:00
|
|
|
repo="${repo}.git"
|
|
|
|
fi
|
|
|
|
echo "Creating $repo"
|
|
|
|
(
|
|
|
|
cd "$HOME"
|
|
|
|
git init --bare "$repo"
|
|
|
|
chown -R git:git "$repo"
|
|
|
|
)
|