From 54dac1f359d6af8c8e85b12f2fbb54eee7f4cdd1 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Sun, 2 Jul 2017 22:05:59 -0400 Subject: experimental/documentation/gerrit.md: fix error NOTRY=true Change-Id: I40762016f28cd5814c79e4159fa4f73d585f6545 Reviewed-on: https://skia-review.googlesource.com/21377 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- experimental/documentation/gerrit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'experimental/documentation') 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}" } -- cgit v1.2.3