Thread (85 messages) 85 messages, 5 authors, 2019-04-18

Re: [PATCH v7 5/8] merge: cleanup messages like commit

From: Eric Sunshine <hidden>
Date: 2019-03-11 17:00:59

On Mon, Mar 11, 2019 at 6:14 AM Phillip Wood [off-list ref] wrote:
On 11/03/2019 05:49, Eric Sunshine wrote:
quoted
On Sun, Mar 10, 2019 at 11:42 PM Denton Liu [off-list ref] wrote:
quoted
+       git cat-file -p HEAD |sed -e "1,/^\$/d" >actual &&
An earlier patch in this series "fixed" a test with a Git command
upstream of a pipe. Yet, this test adds such an instance.
Is it worth worrying about? We're not trying to test cat-file here and
if it does fail the test will fail as actual will be empty.
git-cat-file could crash _after_ producing the expected output, in
which case we wouldn't learn about the crash at all since the pipe
would swallow it. While it's true that we're not specifically testing
git-cat-file here, with all the recent effort toward moving away from
having Git command upstream of a pipe, I don't think it makes sense to
add new cases. And it doesn't hurt to play it safe here: we might
actually catch a crash in git-cat-file which isn't caught by other
scripts which are genuinely testing that command.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help