]> sipb.mit.edu Git - ikiwiki.git/commitdiff
web commit by http://madduck.myopenid.com/: clarify denyNonFastForwards
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 29 Sep 2007 23:22:26 +0000 (23:22 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 29 Sep 2007 23:22:26 +0000 (23:22 +0000)
doc/setup.mdwn

index 7f6ece4c6d08a76464961a087c06a30899b6ce74..d908e217788b96d175550e0398fe5324b5b3c4b6 100644 (file)
@@ -128,17 +128,18 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
 
                        REPO=~/wiki.git
                        cd $SRCDIR
 
                        REPO=~/wiki.git
                        cd $SRCDIR
-                       mv .ikiwiki ..
                        git init
                        echo .ikiwiki > .gitignore
                        git add .
                        git commit -m'Initial commit'
                        git init
                        echo .ikiwiki > .gitignore
                        git add .
                        git commit -m'Initial commit'
-                       # stop git performing fast forwards -- this is to avoid
-                       # overwriting the remote ref and losing other peoples'
-                       # commits from there.
+                       # if you expect $REPO to receive pushs from multiple
+                       # clones, then it is advisable to stop git performing
+                       # fast forwards -- this is to avoid overwriting the
+                       # remote ref and losing commits from there.
                        git config receive.denyNonFastForwards true
                        git config core.bare true
                        mv .git $REPO
                        git config receive.denyNonFastForwards true
                        git config core.bare true
                        mv .git $REPO
+                       mv .ikiwiki ..
                        cd ..
                        rm -r $SRCDIR
                        git clone -l -s $REPO $SRCDIR
                        cd ..
                        rm -r $SRCDIR
                        git clone -l -s $REPO $SRCDIR