Package: git
Version: 1:1.7.2.5-2
Severity: normal

Hello Gerrit,

git-core includes a script post-receive-email in the directory
/usr/share/doc/git-core/contrib/hooks, that read: 

# This hook is stored in the contrib/hooks directory.  Your distribution
# will have put this somewhere standard.  You should make this script
# executable then link to it in the repository you would like to use it in.
# For example, on debian the hook is stored in
# /usr/share/doc/git-core/contrib/hooks/post-receive-email:
#
#  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.

Similarly the default .git/hooks/post-receive reads

# see contrib/hooks/ for an sample, or uncomment the next line (on debian)

. /usr/share/doc/git-core/contrib/hooks/post-receive-email

Furthermore in sid, if the user removes git-core as advised, then 
/usr/share/doc/git-core/contrib/hooks/post-receive-email
is not valid, so this will cause problems to users after the upgrade.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to