tags 555025 + patch pending thanks On Sun, Nov 08, 2009 at 11:22:03AM +0900, Charles Plessy wrote: > first of all, kudos for inventing debcheckout. It is really a tool > that changes how Debian is.
Thanks, I'm truly flattened. > I would like to suggest to run the following two system commands in git > repositories after checking them out: > > git config user.name "$DEBFULLNAME" > git config user.email "$DEBEMAIL" > > The rationale is that even if $HOME/.git-config is set, it may not be the best > choice. For instance, at work I want my git repositories to use my work email That's a very good idea, I think it makes sense and that it contributes in integrating more the various devscripts together. Please find attached the patch I've just committed to devscript SVN. Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 z...@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime
Index: scripts/debcheckout.pl =================================================================== --- scripts/debcheckout.pl (revision 2018) +++ scripts/debcheckout.pl (working copy) @@ -914,6 +914,10 @@ $rc = $? >> 8; print STDERR "TopGit population failed\n" if $rc != 0; } + system("cd $wcdir && git config user.name \"$ENV{'DEBFULLNAME'}\"") + if (defined($ENV{'DEBFULLNAME'})); + system("cd $wcdir && git config user.email \"$ENV{'DEBEMAIL'}\"") + if (defined($ENV{'DEBEMAIL'})); if (length $git_track) { my @heads; if ($git_track eq '*') {
signature.asc
Description: Digital signature