-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2eaed37
commit 30a1f2c
Showing
1 changed file
with
0 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,21 +47,3 @@ def commit(self, filepaths, commit_message: str, env: dict[str, str] = {}): | |
"-m", | ||
f"{commit_message}", | ||
) | ||
|
||
def set_git_global_user_config(self, git_user): | ||
""" | ||
This configuration prevents from having this git error: | ||
stderr: 'Committer identity unknown | ||
*** Please tell me who you are. | ||
Run | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
to set your account's default identity. | ||
Omit --global to set the identity only in this repository. | ||
fatal: unable to auto-detect email address (got 'root@b37fb619ac5a.(none)')' | ||
""" | ||
self.repo.config_writer().set_value("user", "name", git_user.name).release() | ||
self.repo.config_writer().set_value("user", "email", git_user.email).release() | ||
self.repo.config_writer().set_value( | ||
"user", "signingkey", git_user.signingkey | ||
).release() |