summaryrefslogtreecommitdiff
path: root/ikiwiki-makerepo
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki-makerepo')
-rwxr-xr-xikiwiki-makerepo6
1 files changed, 5 insertions, 1 deletions
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