]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
push-all: Use TOR_UPSTREAM_REMOTE_NAME to override UPSTREAM_BRANCH
authorNick Mathewson <nickm@torproject.org>
Mon, 10 Jun 2019 12:56:26 +0000 (08:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 10 Jun 2019 13:01:17 +0000 (09:01 -0400)
We already allow this override in our pre-push hook, so let's allow
it here too.

(I call my upstream branches "origin")

scripts/git/git-push-all.sh

index 9e1b39c10a5ba1dac49641ea8e1b6992f661b485..0701b27b5988ee658e595c80a508fe59d1495fb9 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/bash
 
 # The remote upstream branch on which git.torproject.org/tor.git points to.
-UPSTREAM_BRANCH="upstream"
+UPSTREAM_BRANCH=${TOR_UPSTREAM_REMOTE_NAME:-"upstream"}
 
-git push $UPSTREAM_BRANCH \
+git push "$UPSTREAM_BRANCH" \
    master \
    {release,maint}-0.4.1 \
    {release,maint}-0.4.0 \