Commit 106a2d8e authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files


parent f3d0136e
Pipeline #31637 passed with stages
in 45 seconds
......@@ -112,14 +112,16 @@ fi
# qgit name "&Push and Create Merge Request"
# name of the current branch
currentBranch=$(git rev-parse --abbrev-ref HEAD)
# push
# As git push prints to stderr, redirect stderr to stdout
pushmsg=$(git push 2>&1)
pushmsg=$(git push --set-upstream origin $currentBranch 2>&1)
# setup upstream for local branch (if someone else modify the current
# branch, then "git pull" will be configured to get this modification
currentBranch=$(git rev-parse --abbrev-ref HEAD)
git branch --set-upstream-to=origin/$currentBranch $currentBranch
url=$(echo "$pushmsg" | grep https | cut -c11-)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment