Support older git versions without -C
This commit is contained in:
parent
28d9eb6062
commit
898664d7b3
2 changed files with 24 additions and 21 deletions
|
@ -9,7 +9,10 @@ for name in $@; do
|
||||||
url="ssh://osh@192.168.2.6:/~/git/$name.git"
|
url="ssh://osh@192.168.2.6:/~/git/$name.git"
|
||||||
|
|
||||||
mkdir $dir
|
mkdir $dir
|
||||||
git -C $dir init --bare
|
pushd $dir
|
||||||
|
git init --bare
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
echo "Oshgnacknak" > $dir/owner
|
echo "Oshgnacknak" > $dir/owner
|
||||||
echo $url > $dir/url
|
echo $url > $dir/url
|
||||||
|
|
Reference in a new issue