Merge pull request #2755 from aanand/fix-rebase-script

Fix rebase-bump-commit script
This commit is contained in:
Aanand Prasad 2016-01-27 02:05:24 +00:00
commit 3aa545eb8e

View File

@ -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