Package: git-buildpackage
Version: 0.4.65~3.gbp3ceaa3
Severity: minor
Hi,
I thought to try --fast-import, since I had some problems with normal
import adding files that were ignored by upstreams .gitignore (and thus
didn't show up in git status when I cleaned the tree before importing).
Anyway, after importing using --fast-import, I noticed that it had
created the upstream import commit using just my username as author
name, instead of my full name (from /etc/passwd). Looking at the code,
it seems that GitRepository.get_author_info() tries to emulate git's
behaviour, but apparently neglects to do a /etc/passwd / NSS lookup when
it uses the current username as a name.
It seems this is a matter of doing
name = pwd.getpwnam(name)[4].split(',')[0]
after getting the value of $USER, with some error handling of course.
However, isn't there some way to let git do all this stuff instead of
recreating git's name guessing algorithms in gbp? That would of course
be a lot better and more predictable...
Gr.
Matthijs
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]