Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480884 - =app-portage/layman-2.0.0 sets git config user.name and user email, why?
Summary: =app-portage/layman-2.0.0 sets git config user.name and user email, why?
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-13 15:00 UTC by Michael Weber (RETIRED)
Modified: 2016-01-02 01:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2013-08-13 15:00:59 UTC
I'm maintaining one layman managed overlay (xmw) with me as only author, and i was curious if i could use the `layman -a xmw` checkout as basis to author updates - after setting `git remote set-url --push origin git+ssh://git@git.overlays.gentoo.org/dev/xmw.git`.

I'd reduce the variances in my configs (homogenous `layman -l` and PORTDIR_OVERLAYS dlists).

But it deliberately alters config user.name and email

 * Running Git... # ( cd /var/lib/layman/xmw  && /usr/bin/git config user.name "layman" )
 * Running Git... # ( cd /var/lib/layman/xmw  && /usr/bin/git config user.email "layman@localhost" )

What is the intent?
Comment 1 Michael Weber (RETIRED) gentoo-dev 2013-08-13 15:24:50 UTC
Workaround, remove [user] section with corresponding keys from /var/lib/layman/xmw/.git/config ;-)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-13 15:25:04 UTC
I think it was added when someone had force-pushed a commit and merge happened to users. Having consistent merge commit done by layman allowed us to push another merge to the repo and unscrew the situation.
Comment 3 Brian Dolbec gentoo-dev 2013-08-13 20:29:00 UTC
see bug 433687  which resulted in this commit:

http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=faf6c74c1aa866d62137dcf203b3bca7a0e32634

My intention was to be able to make this a per repo setting along with some others.

From this and some discussion on IRC.  I'll add a config option to turn off this setting for now.