I got a copy of git-sh-setup. All of my commits (that have either worked or that I fixed) look like this: GIT_AUTHOR_NAME='JT' GIT_AUTHOR_EMAIL='jt@xxxxxxxxxxxxxxx' GIT_AUTHOR_DATE='1294756950 -0700' Author: jt@xxxxxxxxxxxxxxx Email: jt@xxxxxxxxxxxxxxx Subject: removing nondeterminism from test Date: Tue, 11 Jan 2011 07:42:30 -0700 Should "Author" be my name? Could that be what's going on? I don't even know where that gets set. The ones that I failed to notice that they broke before I pushed them look like this: GIT_AUTHOR_NAME='jt@xxxxxxxxxxxxxxx' GIT_AUTHOR_EMAIL='jt@xxxxxxxxxxxxxxx' GIT_AUTHOR_DATE='1294775987 -0700' Author: jt@xxxxxxxxxxxxxxx Email: jt@xxxxxxxxxxxxxxx Subject: some cleanup Date: Tue, 11 Jan 2011 12:59:47 -0700 Thanks again for the help. This has been frustrating me for months. Still working on a duplicate-the-problem script. -JT On Thu, Jan 13, 2011 at 10:00 AM, JT Olds <jtolds@xxxxxxxxx> wrote: >> Some things off the top of my head: Does your GIT_AUTHOR_NAME or >> GIT_AUTHOR_EMAIL contain any odd characters that might confuse a parser? > > Nah, from my .git/config > > [user] > name = JT > email = jt@xxxxxxxxxxxxxxx > >> Do you do anything special with setting up those environment variables >> in your shell (e.g., in a .bashrc or .profile; those files _shouldn't_ >> be read by a non-interactive shell, but it's something to investigate)? > > Nope, the only place in my entire home directory where those get set > are in my filter-branch script to fix them, which I only run after the > problem manifests itself. > >> For that matter, how do you set up your identity in general (by >> environment, or in ~/.gitconfig, or a local .git/config in each repo), >> and what does it contain? > > I have a global identity in ~/.gitconfig > > [user] > name = JT > email = hello@xxxxxxxxxx > > and then in particular topic branches in their .git/config like before. > >> Can you try running this in a repo that's giving you problems: >> >> . git-sh-setup >> git log --format=%H --author=your.name | >> while read rev; do >> get_author_ident_from_commit $rev >> git format-patch -1 --stdout $rev | >> git mailinfo /dev/null /dev/null >> done | less > > I don't have git-sh-setup, which seems like it should be included in > the git-core package, but it's not. I have git-core > 1:1.7.1-1.1ubuntu0.1 installed. Obviously this precludes > get_author_ident_from_commit from working. > >> If that doesn't turn up anything, I think the next thing to try would be >> making a script that reproduces the problem for you, and see if I can >> reproduce it here. > > Alright, I'll see what I can do. Thanks. > -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html