threads / discuss / 3841

git ident

Subject: git ident

## tl;dr

3 messages between Apr 9, 2006 and Apr 9, 2006.

replies: 2people: 3as markdown or json

Jeremy English· Apr 9, 2006, 18:48 UTC · lore

I keep a local project in a git archive. After the last upgrade I get a ident error when trying to commit. It works after I set the environment variables. What I don't like is that the error comes up after I have typed in my comment, then my comment is lost, that's frustrating. The other thing is I don't care if the commit is coming from a valid person, why require this?

Junio C Hamano· Apr 9, 2006, 19:01 UTC · re: Jeremy English · lore

Re: git ident

Jeremy English <jhe@jeremyenglish.org> writes:
> What I don't like is that the error comes up
> after I have typed in my comment, then my comment is lost, that's
> frustrating.

Sympathizable, but presumably a new user needs to be burned only once (set them either in $HOME/.profile or .git/config if you want to use separate identity per project).

> ....  The other thing is I don't care if the commit is coming
> from a valid person, why require this?

Because public projects like the kernel wants to prevent otherwise good commits from a misconfigured repository to propagate into them. We could have a separate per-repository configuration to say "broken identity is not a problem for this project", but if the user has to set that in the configuration, she would be better off setting her identity there.

And making it the default not to require the identity is going backwards. Our primary focus is to support public, multi-person, distributed development project.

sean· Apr 9, 2006, 19:02 UTC · re: Jeremy English · lore

Re: git ident

On Sun, 09 Apr 2006 13:48:49 -0500 Jeremy English <jhe@jeremyenglish.org> wrote:

Show 6 quoted lines
> I keep a local project in a git archive.  After the last upgrade I get a 
> ident error when trying to commit.  It works after I set the environment 
> variables.  What I don't like is that the error comes up after I have 
> typed in my comment, then my comment is lost, that's frustrating.  The 
> other thing is I don't care if the commit is coming from a valid person, 
> why require this?

Believe it is required to reduce the number of commits made in the kernel project with incorrect attribution. To remove the need to set environment variables, use the repo-config command to set some defaults:

$ git repo-config user.email "you@email.com" $ git repo-config user.name "your name"

HTH, Sean

← back to recent threads