Skip to content

Commit

Permalink
add git user config
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Aug 24, 2024
1 parent 9a66f1b commit 8a92ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pbpy/pbgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ def check_remote_connection():
[get_git_executable(), "remote", "get-url", "origin"]
)
recent_url = pbconfig.get("git_url")
git_user = pbconfig.get_user("project", "git_user")
if git_user:
recent_url.replace("https://", f"https://{git_user}@")

if current_url != recent_url:
output = pbtools.get_combined_output(
Expand Down

0 comments on commit 8a92ebf

Please sign in to comment.