Issues with Git repositories

Manuel Prinz debian at pinguinkiste.de
Fri Jul 4 11:47:00 UTC 2008


Am Freitag, den 04.07.2008, 12:56 +0200 schrieb Teemu Ikonen:
> 2008/7/4 Manuel Prinz <debian at pinguinkiste.de>:
> > I forgot to add: If you decide to change permissions by hand, please set
> > the "core.sharedrepository" value to "2" in the config. Otherwise new
> > files in the repository will get wrong permissions still. Thanks in
> > advance!
> 
> I'm not sure what you mean here (could be an RTFM error by me though).
> Shouldn't the "core.sharedrepository" value be either "all" or
> "debian-science".

Sorry for being unclear or taken complex things as obvious! :/

By looking into the config file of the repository[1], you will find the
following lines:

[core]
	[...]
	sharedrepository = 2

This is the desired behaviour. The "2" is equivalent to "all". I do not
know if Git allows a non-numeric value here, so setting it to 2 is the
safest option.

The setting "all" means that the repository is writeable to the group
and readable for everyone else which matches our setup. The other
settings are explained in "git init --help".

> Also, could you post more accurate instructions on how to enable the
> post-commit emails? I assume you have to make the "post-receive" hook
> executable, but the default version of that file is all commented out.
> Is there a script somewhere in alioth which sends the messages?

Setting up the system to send commit messages is explained in the group
policy in the section "Commit Messages". The permission should be 
0775, not 0755 as stated there. I fixed this and will push the changes
soon. I will repeat the correct procedure here:

git config --add hooks.mailinglist "debian-science-commits at lists.alioth.debian.org"
cat >hooks/post-receive <<END
#!/bin/sh
exec /usr/local/bin/git-commit-notice
END
chmod 0775 hooks/post-receive

The template of the post-update hook is fine, it just needs to be
"activated" by changing the permissions to 0775:

chmod 0775 hooks/post-update

Sorry again for not being verbose enough! If further questions arise,
don't hesitate to ask!

Best regards
Manuel

[1] Or by calling "git config --get core.sharedrepository", if prefered.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20080704/3be3a97a/attachment.pgp 


More information about the debian-science-maintainers mailing list