1
0
mirror of https://github.com/git/git.git synced 2024-10-22 17:09:18 +02:00

Don't squash-merge if the old and new commits are the same.

This commit is contained in:
Avery Pennarun 2009-05-30 03:33:17 -04:00
parent 1cc2cfff91
commit eb4fb91094

@ -523,6 +523,10 @@ cmd_merge()
set $first_split
old=$1
sub=$2
if [ "$sub" = "$rev" ]; then
say "Subtree is already at commit $rev."
exit 0
fi
new=$(new_squash_commit "$old" "$sub" "$rev") || exit $?
debug "New squash commit: $new"
rev="$new"