Re: link user-name with ssh-login
- From
Jeff King <peff@peff.net>
- Date
- Mar 19, 2012, 20:57 UTC
- Message-ID
- <20120319205747.GB3039@sigill.intra.peff.net>
- In-Reply-To
- <7v7gygbdxg.fsf@alter.siamese.dyndns.org>
On Mon, Mar 19, 2012 at 12:15:07PM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> A pre-receive hook that lists the author names of the commits, along the > lines of "git log --format='%an <%ae>' $OLD_HEAD..$NEW_HEAD" and compares > against the name of the user authenticated against your SSH server would > be a way to do this. > > But that would mean you are forbidding people to accept patches from > others, inspect the patches for validity and vouch for them, while giving > the credit to them by recoding the author names of the patch authors. > > Perhaps checking the committer name would suit your situation better. I > dunno.
Then you would be forbidding merges of other people's work, no? Even if the other person's commits are available in the upstream repo, they might be hitting this ref for the first time, and would be generally be checked by such a hook.
-Peff