X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/491847ed5311123b3ce58c636451c56a2a0f191b..de8395367c6e8b70a45c25e3ae190fd89018c34a:/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