mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-08 09:09:26 +00:00
move-script: Be explicit about the ref to push to
Otherwise, a local `push.default` setting could interfere with this. E.g. setting it to `upstream` can cause the script to attempt to push to `main`.
This commit is contained in:
parent
f54c2a2bac
commit
580597d0b2
|
@ -487,9 +487,10 @@ class GstMRMover:
|
|||
def push_branch(self, branch):
|
||||
fprint(
|
||||
f"-> Pushing branch {branch} to remote {self.gl.user.username}...")
|
||||
if self.git("push", "--no-verify", self.gl.user.username, branch,
|
||||
refspec = f"{branch}:refs/heads/{branch}"
|
||||
if self.git("push", "--no-verify", self.gl.user.username, refspec,
|
||||
interaction_message=f"pushing {branch} to {self.gl.user.username} with:\n "
|
||||
f" `$git push {self.gl.user.username} {branch}`") == "SKIP":
|
||||
f" `$git push {self.gl.user.username} {refspec}`") == "SKIP":
|
||||
fprint(yellow("'SKIPPED' (couldn't push)"), nested=False)
|
||||
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue