mirror of https://github.com/docker/docs.git
Fix rebase-bump-commit script
Trim whitespace from wc's output before constructing arguments to `git rebase` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
4b84d088e0
commit
e40a46349f
|
@ -32,7 +32,7 @@ if [[ "$sha" == "$(git rev-parse HEAD)" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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 rebase --onto $sha~1 HEAD~$commits $BRANCH
|
||||||
git cherry-pick $sha
|
git cherry-pick $sha
|
||||||
|
|
Loading…
Reference in New Issue