X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/491847ed5311123b3ce58c636451c56a2a0f191b..e98ce82daf0c68f1494f231bd86d0129f86ee3e6:/ikiwiki-makerepo diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index a6999cb4a..423c4d93b 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -50,7 +50,11 @@ svn) echo "Directory $srcdir is now a checkout of $rcs repository $repository" ;; git) - GIT_DIR="$repository" git --bare init --shared + # There are better ways to do this, but this works with older + # versions of git.) + mkdir -p "$repository" + (cd "$repository" && git --bare init --shared) + cd "$srcdir" git init echo /.ikiwiki > .gitignore