-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why set email and user.name for every repository? #105
Comments
I have a different user/email in my global git config, so setting the debian ones for debian repositories only makes sense in my world. I would accept a patch which skips this behavior when the global git config already contains the correct name, though :) |
Great! Would you mind if I use |
Isn’t shelling out to the git tool sufficient for this? |
Doing it by hand will add this code. It is totally your call. Thank you!
|
Yeah, I think I’d prefer that code (modulo some comments which we can discuss over a pull request) over an additional dependency :) |
Hi, should
user.name
andemail
really be added to every repository? I have both in my~/.gitconfig
? An alternative could be to warn if neither is available, and maybe add them (preferably globally) fromDEB_FULLNAME
andDEB_EMAIL
.I stumbled on the issue because of a bug in
golang-github-tcnksm-go-gitconfig
, where tests were not properly isolated. (That merge request is here.) While this issue is not necessarily a bug, it may make it more difficult to change an email. Please let me know your favorite way to resolve, and I will submit a merge request. Thank you!dh-make-golang/make.go
Lines 296 to 306 in f0afc0f
The text was updated successfully, but these errors were encountered: