From d312709c416944cab8e8e3ad09d47b69f9049931 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Jan 2008 15:12:02 -0500 Subject: * 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. --- ikiwiki-makerepo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '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 -- cgit v1.2.3