From: Karthik Nayak Date: Fri, 20 Feb 2026 09:15:08 GMT Subject: Re: [PATCH v7 6/6] refs: add GIT_REFERENCE_BACKEND to specify reference backend Message-ID: In-Reply-To: Patrick Steinhardt writes: [snip] >> -test_expect_success 'URI is invalid' ' >> +# Verify that the expected files are present in the gitdir and the refsdir. >> +# Usage: verify_files_exist >> +# is the path for the gitdir. >> +# is the path for the refdir. >> +verify_files_exist() { >> + gitdir=$1 && >> + refdir=$2 && >> + >> + # verify that the stubs were added to the $GITDIR. >> + cat $gitdir/refs/heads >actual && >> + echo "repository uses alternate refs storage" >expect && >> + test_cmp expect actual && > > Tiny nit, not worth addressing on its own: we could simply `test_cmp > expect "$gitdir/refs/heads", without the need to copy that file first. > Indeed. I'll make this change locally, but hold off on re-rolling for now. >> + cat $gitdir/HEAD >actual && >> + echo "ref: refs/heads/.invalid" >expect && >> + test_cmp expect actual > > Same here, no need to copy the file around. > > Other than that I'm happy with this patch series now, thanks! > > Patrick I'm also quite happy with how its turned out. Thanks for the continuous reviews. Karthik