Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-08 09:09:18 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-08 20:01:15 +0300
commit34e2cba4164d0cfdb928a6bf2354bba8dc7018df (patch)
treeb7c87827606773b64afbd6ec0d38496e81e51b82
parent8fba660e859c26a94ec65aa42aa5a00775775698 (diff)
CheckPush: 'next' could be identical to 'master'
-rwxr-xr-xCheckPush2
1 files changed, 1 insertions, 1 deletions
diff --git a/CheckPush b/CheckPush
index 61b71d8b99..e79f364e8e 100755
--- a/CheckPush
+++ b/CheckPush
@@ -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"