Re: Git Rebase blows away GIT_AUTHOR_NAME

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]