File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ if [ -z ${branch} ]; then
2828 exit 1
2929fi
3030
31+ # save old commit
32+ oldhead=$( git show | grep commit | cut -d ' ' -f 2)
33+
3134# Construct merge message
3235currentBranch=$( git branch | grep " ^*" | sed -e " s/^[*] //" )
3336echo " Merge release branch ${branch} to ${currentBranch} " > ${tmpMessageFile}
5356rm -fr ${tmpMessageFile}
5457
5558apache_remote=$( git remote -v | grep -E " git-wip-us\.apache\.org" | head -n 1 | cut -f1)
56- echo " INFO: Actual diff in commits is: (running git log --pretty=oneline --abbrev-commit ${apache_remote} / ${currentBranch } ..${currentBranch} )"
59+ echo " INFO: Actual diff in commits is: (running git log --pretty=oneline --abbrev-commit ${oldhead } ..${currentBranch} )"
5760echo
58- git log --pretty=oneline --abbrev-commit ${apache_remote} / ${currentBranch } ..${currentBranch}
61+ git log --pretty=oneline --abbrev-commit ${oldhead } ..${currentBranch}
5962
6063# What's next
6164echo " We're done! Please double check using 'git log -p' and 'git push' when you're sure."
You can’t perform that action at this time.
0 commit comments