X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c6a56ed9cd312bd22fbd343760a8ac5f033fedc4..b79547385ac6643cf4db6bece97ec99ad6bf6b4b:/doc/setup/git_pitfalls.mdwn diff --git a/doc/setup/git_pitfalls.mdwn b/doc/setup/git_pitfalls.mdwn index a19666dea..c3584775b 100644 --- a/doc/setup/git_pitfalls.mdwn +++ b/doc/setup/git_pitfalls.mdwn @@ -1 +1,22 @@ -I want to collect common problems and their solutions when using Ikiwiki with Git here. Nothing here yet though, so feel free to add... \ No newline at end of file +I want to collect common problems and their solutions when using Ikiwiki with Git here. Nothing here yet though, so feel free to add... + +> Well, I have a question. :-) +> +> If I follow the instructions, I get a bare $REPOSITORY and a $SRCDIR that +> is cloned off of it. Web edits change the SRCDIR and ikiwiki automatically +> pushes to origin, which updates REPOSITORY. But the instructions say not +> to clone from SRCDIR; so I clone from REPOSITORY. Now if I manually edit +> a file and push the commit, it goes to REPOSITORY. The wiki isn't +> updated. +> +> Seems like REPOSITORY needs a post-receive hook that cd's to SRCDIR and +> does a git pull, and manually triggers ikiwiki. Which seems very messy. +> +> Am I doing something wrong? --[[Joey]] +> +> Hmm, perhaps I installed the wrapper to the wrong place? I had thought +> it would go in $SRCDIR/.git/hooks/post-commit, but on second read, I see +> that [[setup]] says it should be $REPOSITORY/hooks/post-update +> +> That seems to have sorted it. Based on [[this|rcs/git/discussion]], I'm +> not the only one to trip over how to do this. --[[Joey]]