]> git.ipfire.org Git - thirdparty/git.git/commit
t4002: fix "diff can read from stdin" syntax
authorD. Ben Knoble <ben.knoble+github@gmail.com>
Fri, 14 Jul 2023 13:30:10 +0000 (13:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jul 2023 16:53:06 +0000 (09:53 -0700)
commite3a567ff4210614899424d2000015bab9b25af86
treebb8e0e54b6a23b10b547a4ff16d0fc08d9839573
parent3b8724bce65edea7abba480929457ef794ec753e
t4002: fix "diff can read from stdin" syntax

I noticed this test was producing output like

```
t4002-diff-basic.sh: test_expect_successdiff can read from stdin: not found
```

which is rather odd. Investigation shows an error of shell syntax:
foo'abc' is the same as fooabc to the shell. Perhaps obviously, this is
not a valid command for the test.

I am surprised this doesn't count as an error in the test, but that
accounts for it going unnoticed.

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4002-diff-basic.sh