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
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:
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:
The
user.nameanduser.emailvalues 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