Skip to content

Commit

Permalink
Update git_svc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danamzulescu-codefresh committed May 2, 2023
1 parent 5f88a60 commit 0651826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/git_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _set_gituser_cred(self) -> None:
main_git_user_id = str(random.randint(1, self._git_data.git_users_count))
self._username = os.environ[f"GIT_USER{main_git_user_id}"]
self._password = os.environ[f"GIT_PAT{main_git_user_id}"]
self._password = os.environ[f"GIT_EMAIL{main_git_user_id}"]
self._email = os.environ[f"GIT_EMAIL{main_git_user_id}"]
# TODO: Add validations for the subprocess.run below
subprocess.run(['git', 'config', '--global', 'user.name', self._username])
subprocess.run(['git', 'config', '--global', 'user.password', self._password])
Expand Down

0 comments on commit 0651826

Please sign in to comment.