]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki-makerepo
test3
[ikiwiki.git] / ikiwiki-makerepo
index a6999cb4a32288ef53910c664921661d981306d8..423c4d93b85573262c5677a6515c7de6bd329e84 100755 (executable)
@@ -50,7 +50,11 @@ svn)
        echo "Directory $srcdir is now a checkout of $rcs repository $repository"
 ;;
 git)
        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
        cd "$srcdir"
        git init
        echo /.ikiwiki > .gitignore