web commit by http://madduck.myopenid.com/: further simplification by using $GIT_DIR
[ikiwiki.git] / doc / setup.mdwn
index 98806b583801c5f43325da2e10fd7a5dd0b9a57a..e49d92d770f5a9d4cfade49285be5ada60350c3f 100644 (file)
@@ -128,9 +128,7 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
        to do the following, but this might be easiest:
 
                        REPOSITORY=~/wiki.git
-                       mkdir $REPOSITORY
-                       cd $REPOSITORY
-                       git --bare init --shared
+                       GIT_DIR=$REPOSITORY git --bare init --shared
                        cd $SRCDIR
                        git init
                        echo /.ikiwiki > .gitignore