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 <dnephin@docker.com>
This commit is contained in:
parent
6b002fb922
commit
d18ad4c812
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ VERSION="$(git config "branch.${BRANCH}.release")" || usage
|
||||||
|
|
||||||
|
|
||||||
COMMIT_MSG="Bump $VERSION"
|
COMMIT_MSG="Bump $VERSION"
|
||||||
sha="$(git log --grep "$COMMIT_MSG" --format="%H")"
|
sha="$(git log --grep "$COMMIT_MSG\$" --format="%H")"
|
||||||
if [ -z "$sha" ]; then
|
if [ -z "$sha" ]; then
|
||||||
>&2 echo "No commit with message \"$COMMIT_MSG\""
|
>&2 echo "No commit with message \"$COMMIT_MSG\""
|
||||||
exit 2
|
exit 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue