From: Junio C Hamano Date: Sun, 18 Oct 2026 01:19:59 GMT Subject: Re: [PATCH v2 2/2] odb: ignore refs of shallow and grafted alternates Message-ID: In-Reply-To: <20261014181134.56220-3-iwiedler@gitlab.com> Igor Wiedler writes: > diff --git a/t/t5618-alternate-refs.sh b/t/t5618-alternate-refs.sh > index 4cc39af0f0..9c3862709a 100755 > --- a/t/t5618-alternate-refs.sh > +++ b/t/t5618-alternate-refs.sh > @@ -70,4 +70,17 @@ test_expect_success 'connectivity check of a deepening fetch excludes alternate > --alternate-refs --quiet ' > > +test_expect_success 'refs of a shallow alternate are ignored' ' > + git clone --depth=1 "file://$TRASH_DIRECTORY" "$TRASH_DIRECTORY/shallow" && > + test_commit -C "$TRASH_DIRECTORY/shallow" shallow-only && > + git -C "$TRASH_DIRECTORY/shallow" rev-parse HEAD >shallow-tip && > + cp .git/objects/info/alternates alternates.bak && > + test_when_finished "mv alternates.bak .git/objects/info/alternates" && > + echo "$TRASH_DIRECTORY/shallow/.git/objects" >>.git/objects/info/alternates && > + git cat-file -e $(cat shallow-tip) && > + git rev-list --remotes=origin >expect && > + git rev-list --alternate-refs >actual && > + test_cmp expect actual > +' This seems to break CI only on Windows https://github.com/git/git/actions/runs/39084117165/job/117547610467#step:5:279 https://github.com/git/git/actions/runs/39084117165/job/117547743280#step:6:272 I'll eject the topic from 'seen' for now. Thanks.