From: Junio C Hamano Date: Sun, 11 Jan 2026 22:50:37 GMT Subject: Re: [RFC PATCH] t5500-fetch-pack.sh: fix suppression of Git exit code in tests Message-ID: In-Reply-To: <20260111202137.257405-1-shreyanshpaliwalcmsmn@gmail.com> Shreyansh Paliwal writes: > + test_oid algo >oid_algo && > + git rev-parse other >oid_other && > + git rev-parse main >oid_main && It is unusual to take these to temporary files. If you want to reuse the value more than once, it is more common to take them in variables. > GIT_PROTOCOL=version=2 git upload-pack . <<-EOF >/dev/null > 0012command=fetch > - $(echo "object-format=$(test_oid algo)" | packetize) > + $(echo "object-format=$(