Re: Git Rebase blows away GIT_AUTHOR_NAME
- From
JT Olds <jtolds@xnet5.com>
- Date
- Jan 13, 2011, 17:00 UTC
- Message-ID
- <AANLkTimanDRHwoqSj7i9sVCZkze1L3Qp-zFYwTwHAOHX@mail.gmail.com>
- In-Reply-To
- <20110112182150.GC31747@sigill.intra.peff.net>
> 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@instructure.com
> 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@jtolds.comand then in particular topic branches in their .git/config like before.
Show 9 quoted lines
> 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.