Skip to content

Commit

Permalink
fix pushing on gitlab runner
Browse files Browse the repository at this point in the history
  • Loading branch information
marwin1991 authored Dec 19, 2023
1 parent b8a275d commit c75d28b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion valhalla/commit/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,8 @@ def __get_push_url(self, token):
remote_url = origin.url
info(f"Remote url: {remote_url}")
remote_url = remote_url.replace("https://", "").replace("http://", "")
push_url = "https://{}:{}@{}".format("valhalla-bot", token, remote_url)
trimmed_url = remote_url.split('@')[-1] if '@' in remote_url else remote_url
info(f"trimmed_url: {trimmed_url}")
push_url = "https://{}:{}@{}".format("valhalla-bot", token, trimmed_url)
info(f"push_url: {push_url}")
return push_url

0 comments on commit c75d28b

Please sign in to comment.