mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix merge diff display (#7047)
This commit is contained in:
parent
20306d6129
commit
6790371fe2
@ -28,6 +28,9 @@ if [ -z ${branch} ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# save old commit
|
||||||
|
oldhead=$(git show | grep commit | cut -d ' ' -f 2)
|
||||||
|
|
||||||
# Construct merge message
|
# Construct merge message
|
||||||
currentBranch=$(git branch | grep "^*" | sed -e "s/^[*] //")
|
currentBranch=$(git branch | grep "^*" | sed -e "s/^[*] //")
|
||||||
echo "Merge release branch ${branch} to ${currentBranch}" > ${tmpMessageFile}
|
echo "Merge release branch ${branch} to ${currentBranch}" > ${tmpMessageFile}
|
||||||
@ -53,9 +56,9 @@ fi
|
|||||||
rm -fr ${tmpMessageFile}
|
rm -fr ${tmpMessageFile}
|
||||||
|
|
||||||
apache_remote=$(git remote -v | grep -E "git-wip-us\.apache\.org" | head -n 1 | cut -f1)
|
apache_remote=$(git remote -v | grep -E "git-wip-us\.apache\.org" | head -n 1 | cut -f1)
|
||||||
echo "INFO: Actual diff in commits is: (running git log --pretty=oneline --abbrev-commit ${apache_remote}/${currentBranch}..${currentBranch})"
|
echo "INFO: Actual diff in commits is: (running git log --pretty=oneline --abbrev-commit ${oldhead}..${currentBranch})"
|
||||||
echo
|
echo
|
||||||
git log --pretty=oneline --abbrev-commit ${apache_remote}/${currentBranch}..${currentBranch}
|
git log --pretty=oneline --abbrev-commit ${oldhead}..${currentBranch}
|
||||||
|
|
||||||
# What's next
|
# What's next
|
||||||
echo "We're done! Please double check using 'git log -p' and 'git push' when you're sure."
|
echo "We're done! Please double check using 'git log -p' and 'git push' when you're sure."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user