From: Junio C Hamano Date: Sun, 08 Mar 2026 06:04:12 GMT Subject: Re: [PATCH v4] t3310: avoid hiding failures from rev-parse in command substitutions Message-ID: In-Reply-To: Eric Sunshine writes: >> @@ -569,13 +578,15 @@ EOF >> - test_grep -q "$(git rev-parse refs/notes/m)" output && >> - test_grep -q "$(git rev-parse NOTES_MERGE_PARTIAL^1)" output && >> + oid=$(git rev-parse refs/notes/m) && >> + test_grep -q "$oid" output && >> + oid=$(git rev-parse NOTES_MERGE_PARTIAL^1) && >> + test_grep -q "$oid" output && >> @@ -606,8 +617,8 @@ test_expect_success 'switch cwd before committing notes merge' ' >> - echo "foo" > $(git rev-parse HEAD) && >> - echo "bar" >> $(git rev-parse HEAD) && >> + oid=$(git rev-parse HEAD) && >> + test_write_lines foo bar >"$oid" && > > Thank you, this version (v4) looks good; it addresses all my review > comments. For what it's worth: > > Reviewed-by: Eric Sunshine Yup, looking good.