Skip to content

Commit d875b80

Browse files
committed
Specify branch explicitly
1 parent a6e7eff commit d875b80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/release/bump_version.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ case "${git_origin_url}" in
4444
;;
4545
esac
4646

47-
git switch -c "bump-version-${version}" main
47+
branch="bump-version-${version}"
48+
git switch -c "${branch}" main
4849
mvn versions:set "-DnewVersion=${version}" -DprocessAllModules -DgenerateBackupPoms=false
4950
case "${version}" in
5051
*-SNAPSHOT)
@@ -59,5 +60,5 @@ mvn versions:set-scm-tag "-DnewTag=${tag}" -DgenerateBackupPoms=false -pl :arrow
5960
git add "pom.xml"
6061
git add "**/pom.xml"
6162
git commit -m "MINOR: Bump version to ${version}"
62-
git push origin
63+
git push origin "${branch}"
6364
gh pr create --fill --repo apache/arrow-java

0 commit comments

Comments
 (0)