summaryrefslogtreecommitdiff
path: root/doc/setup.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-29 23:22:26 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-29 23:22:26 +0000
commit79d2526687e63fa4a15024d443def2e0866b7240 (patch)
tree2eac2ec3d0cf1604f8e55ff60415f51b1bb529ad /doc/setup.mdwn
parent4bcb29f346a27c078b9b4ca8fc4fb1cba53a679f (diff)
web commit by http://madduck.myopenid.com/: clarify denyNonFastForwards
Diffstat (limited to 'doc/setup.mdwn')
-rw-r--r--doc/setup.mdwn9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/setup.mdwn b/doc/setup.mdwn
index 7f6ece4c6..d908e2177 100644
--- a/doc/setup.mdwn
+++ b/doc/setup.mdwn
@@ -128,17 +128,18 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
REPO=~/wiki.git
cd $SRCDIR
- mv .ikiwiki ..
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
+ mv .ikiwiki ..
cd ..
rm -r $SRCDIR
git clone -l -s $REPO $SRCDIR