Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Git Identity is deleting my global git user.name and user.email values #2629

Closed
1 task done
stvcisco opened this issue Feb 22, 2021 · 2 comments
Closed
1 task done

Comments

@stvcisco
Copy link

Prerequisites

Description

When I open a file in the Atom editor while the Git panel is open, sometimes the Git Identity panel appears with no values set for my name/email even though these values were set in my global git config. When this happens, my global settings have been removed.

For example, prior to opening a file in the editor I see this in a terminal window:

> git config --global -l          
user.name=<my name>
user.email=<my email address>

Then in Atom I open a file in a repository I haven't used yet in the Atom session and the Git Identity panel appears without any data in it. I then run the command again and see my config has been modified improperly:

> git config --global -l 
user.name=
user.email=

The user.name and user.email values are set to empty strings! This doesn't happen if I've edited something in that repository already, and doesn't always happen, but often enough that I'm concerned why Atom (git handling in particular) is making ANY changes to my global git settings. It should not!

Expected behavior:

My git identity set in global config should be used without modifying it.

Actual behavior:

My data is present but not used. But what's worse - it clears out my global data.

Reproduces how often:

100% when opening a file in a repository that hasn't been worked in yet in the session

Versions

Atom : 1.54.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0
MacOS Big Sur version 11.2.1

Additional Information

@smashwilson
Copy link
Contributor

Duplicate of #2622, #2628, #2557 and probably a few others that I can't find right now. Already fixed by #2587. The latest package version lets you choose explicitly:

image

This will be in the next Atom release. Try switching to Atom Nightly if you want this behavior sooner rather than later!

@stvcisco
Copy link
Author

thanks - apologies for the duplicate - I've confirmed I'm happier on nightly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants