# would not have appeared in QA.
#
-# Command line
refname="$1"
oldrev="$2"
newrev="$3"
if [ "$changed_lines" -ne "0" ] ; then
echo "----------------------------------------------------"
echo
- echo "Moving stable must not result in any changes"
+ echo "Moving stable must not result in any changes from $second_parent"
echo
echo "----------------------------------------------------"
exit 1
# setup the update hook
install_update_hook 'update-stable'
-test_expect_success 'initial stable commit works', '
+test_expect_success 'initial stable commit works' '
# do one stable-less commit
echo $test_name >a &&
git commit -a -m "$test_name" &&
# try merging topic4 into stable, which will get a merge commit, but
# it should have changes involved and so get rejected
git checkout stable &&
+ topic4_hash=$(git rev-parse topic4) &&
git merge topic4 &&
! git push 2>push.err &&
- cat push.err | grep "Moving stable must not result in any changes"
+ cat push.err | grep "Moving stable must not result in any changes from $topic4_hash"
'
test_done