aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki-makerepo
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-11 15:12:02 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-11 15:12:02 -0500
commitd312709c416944cab8e8e3ad09d47b69f9049931 (patch)
treeae1fe4d477c4c69f6bdd74282d258082c3121611 /ikiwiki-makerepo
parentad8fc996ca9fcbf65de81a1890863acf26174287 (diff)
downloadikiwiki-d312709c416944cab8e8e3ad09d47b69f9049931.tar
ikiwiki-d312709c416944cab8e8e3ad09d47b69f9049931.tar.gz
* Old versions of git-init don't support --git-dir or GIT_DIR with
--bare. Change ikiwiki-makerepo to use a method that should work with those older versions too.
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