diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-09-14 12:56:15 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-15 08:46:32 -0700 |
commit | 4fdccb6de5131475fb6ccd3402812e008091afa3 (patch) | |
tree | 20f187d7ec3fc4eb7595125be1994f647d3ce184 | |
parent | 38650d0b5de0df77d5c3985c17ac38f9865f6cbb (diff) | |
download | chrome-ec-4fdccb6de5131475fb6ccd3402812e008091afa3.tar.gz |
util: fix bug in tagbranch
After mulptiple edits of the script, there is a case when bash
variable is not properly quoted, let's fix it.
BRANCH=cr50
BUG=b:64698702
TEST=verified proper tag description set by git
Change-Id: I5847437cde717bb6e1f4b672fe6008b8e6e6f4e3
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/667917
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
-rwxr-xr-x | util/tagbranch.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/tagbranch.sh b/util/tagbranch.sh index bcc71a4806..3e196b6f25 100755 --- a/util/tagbranch.sh +++ b/util/tagbranch.sh @@ -67,7 +67,8 @@ TAG="v1.${TAG_BASE}.0" BASE_SHA="$(git rev-list --ancestry-path "${BRANCH_POINT}".."${UPSTREAM}" | tail -1)" -if git tag -a -m 'firmware branch ${TAG}' "${TAG}" "${BASE_SHA}"; then +echo "Will run git tag -a -m \"firmware branch ${TAG}\" ${TAG} ${BASE_SHA}" +if git tag -a -m "firmware branch ${TAG}" "${TAG}" "${BASE_SHA}"; then cat <<EOF A new tag '$TAG' has been set. Use the following command |