On Thu, Sep 08, 2011 at 09:10:31PM +0200, Bill Allombert wrote: > git-core includes a script post-receive-email in the directory > /usr/share/doc/git-core/contrib/hooks, that read:
> # chmod a+x post-receive-email > # cd /path/to/your/repository.git > # ln -sf /usr/share/doc/git-core/contrib/hooks/post-receive-email > hooks/post-receive > > However policy 12.3 apply: > > Packages must not require the existence of any files in > `/usr/share/doc/' in order to function [1]. Any files that are > referenced by programs but are also useful as stand alone > documentation should be installed under `/usr/share/<package>/' with > symbolic links from `/usr/share/doc/<package>'. > > The purpose of this policy being that it allows the admin to remove > /usr/share/doc/ > without breaking the system. However the instructions above breaks that > property > because the symlink would became stale. > > So it would be better to put the scripts in /usr/share/git. Hi Bill, I agree. With v1.7.7 upstream will change the sample hooks, and I plan to move the contrib hooks into /usr/share/git-core/, providing a symlink in /usr/share/doc/git-core/ for backward compatibility. Regards, Gerrit. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

