Explorar o código

Fix rebase-bump-commit script

Trim whitespace from wc's output before constructing arguments to `git rebase`

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad %!s(int64=9) %!d(string=hai) anos
pai
achega
e40a46349f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      script/release/rebase-bump-commit

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

@@ -32,7 +32,7 @@ if [[ "$sha" == "$(git rev-parse HEAD)" ]]; then
     exit 0
 fi
 
-commits=$(git log --format="%H" "$sha..HEAD" | wc -l)
+commits=$(git log --format="%H" "$sha..HEAD" | wc -l | xargs echo)
 
 git rebase --onto $sha~1 HEAD~$commits $BRANCH
 git cherry-pick $sha