typo
[ikiwiki.git] / doc / setup / git_pitfalls.mdwn
1 I want to collect common problems and their solutions when using Ikiwiki with Git here. Nothing here yet though, so feel free to add...
2
3 > Well, I have a question. :-)
4
5 > If I follow the instructions, I get a bare $REPOSITORY and a $SRCDIR that
6 > is cloned off of it. Web edits change the SRCDIR and ikiwiki automatically
7 > pushes to origin, which updates REPOSITORY. But the instructions say not
8 > to clone from SRCDIR; so I clone from REPOSITORY. Now if I manually edit
9 > a file and push the commit, it goes to REPOSITORY. The wiki isn't
10 > updated.
11
12 > Seems like REPOSITORY needs a post-receive hook that cd's to SRCDIR and
13 > does a git pull, and manually triggers ikiwiki. Which seems very messy.
14 >
15 > Am I doing something wrong? --[[Joey]]
16
17 > Hmm, perhaps I installed the wrapper to the wrong place? I had thought
18 > it would go in $SRCDIR/.git/hooks/post-commit, but on second read, I see
19 > that [[setup]] says it should be $REPOSITORY/hooks/post-update
20
21 > That seems to have sorted it. Based on [[this|rcs/git/discussion]], I'm
22 > not the only one to trip over how to do this. --[[Joey]]