浏览代码

Fix rebase-bump-commit script when used with a final release.

Previously it would find commits for RC releases, which broke the rebase.

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 10 年之前
父节点
当前提交
d18ad4c812
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      script/release/rebase-bump-commit

+ 1 - 1
script/release/rebase-bump-commit

@@ -22,7 +22,7 @@ VERSION="$(git config "branch.${BRANCH}.release")" || usage
 
 
 COMMIT_MSG="Bump $VERSION"
-sha="$(git log --grep "$COMMIT_MSG" --format="%H")"
+sha="$(git log --grep "$COMMIT_MSG\$" --format="%H")"
 if [ -z "$sha" ]; then
     >&2 echo "No commit with message \"$COMMIT_MSG\""
     exit 2