Skip to content

Commit

Permalink
refactor: [#68] remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Mar 29, 2022
1 parent 2eaed37 commit 30a1f2c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/nautilus_librarian/mods/git/domain/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 30a1f2c

Please sign in to comment.