mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
CheckPush: 'next' could be identical to 'master'
This commit is contained in:
@@ -63,7 +63,7 @@ if ! next_equiv=$(git rev-parse --verify 'jch^{/^### match next}' 2>/dev/null) |
|
||||
! git diff --stat --exit-code next $next_equiv
|
||||
then
|
||||
next_tree=$(git rev-parse next^{tree}) &&
|
||||
next_equiv=$(git rev-list --first-parent $MASTER..seen |
|
||||
next_equiv=$(git rev-list --first-parent $MASTER^..seen |
|
||||
xargs -n1 sh -c '
|
||||
echo $(git rev-parse $1^{tree}) $1
|
||||
' - | sed -n -e "s/^$next_tree //p"
|
||||
|
||||
Reference in New Issue
Block a user