Re: [PATCH] Use GIT_COMMITTER_IDENT instead of hardcoded values in import-tars.perl
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 8, 2008, 14:51 UTC
- Message-ID
- <alpine.DEB.1.00.0809081649040.13830@pacific.mpi-cbg.de.mpi-cbg.de>
- In-Reply-To
- <1220777531-28934-1-git-send-email-mh@glandium.org>
Hi,
On Sun, 7 Sep 2008, Mike Hommey wrote:
Show 5 quoted lines
> -my $committer_name = 'T Ar Creator'; > -my $committer_email = 'tar@example.com'; > +chomp(my $committer_ident = `git var GIT_COMMITTER_IDENT`); > +die 'You need to set user name and email' > + unless ($committer_ident =~ s/(.+ <[^>]+>).*/\1/);
I have at least one script that will be broken by this change in behavior.
To me, the issue is just like git-cvsimport, which sets the committer not to the actual committer, so that two people can end up with identical commit names, even if they cvsimported independently. I'd like the same behavior for import-tars. I actually use it that way.
Ciao, Dscho