In order to store both user identifier (username) and email we've introduced Storage module to take care of managing data in .git/config. Now we need to ensure that Actions module rely in Storage implementation.
Proposed solution
Instead of using git config --unset command, I picked git config --remove-section which removes the entire section from .git/config, for instance:
Motivation
In order to store both user
identifier
(username) andemail
we've introducedStorage
module to take care of managing data in.git/config
. Now we need to ensure thatActions
module rely inStorage
implementation.Proposed solution
Instead of using
git config --unset
command, I pickedgit config --remove-section
which removes the entire section from.git/config
, for instance:Running:
git config --remove-section pair.fake_user
will remove entire section above. So we can avoid running--unset
twice.