diff options
Diffstat (limited to 'experimental/documentation')
-rw-r--r-- | experimental/documentation/gerrit.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/documentation/gerrit.md b/experimental/documentation/gerrit.md index 5a17f8a4c6..6284685ecc 100644 --- a/experimental/documentation/gerrit.md +++ b/experimental/documentation/gerrit.md @@ -128,14 +128,14 @@ is set, you can use that to automatically push to that branch: gerrit_push_upstream() { local UPSTREAM_FULL="$(git rev-parse --symbolic-full-name @{upstream})" case "$UPSTREAM_FULL" in - (refs/remotes/*) :;; + (refs/remotes/*);; (*) echo "Set your remote upstream branch."; return 2;; esac local UPSTREAM="${UPSTREAM_FULL#refs/remotes/}" local REMOTE="${UPSTREAM%%/*}" local REMOTE_BRANCH="${UPSTREAM#*/}" local MESSAGE="$(echo $*|sed 's/[^A-Za-z0-9]/_/g')" - echo git push $R @:refs/for/${B}%m=${M}; + echo git push $REMOTE @:refs/for/${REMOTE_BRANCH}%m=${MESSAGE} git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}" } |