correct argument checking test for git hash-object
commit81014073f22736e9dcb9370475af44e67234622f
authorDmitry Potapov <dpotapov@gmail.com>
Sun, 3 Aug 2008 14:36:18 +0000 (3 18:36 +0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2008 20:22:57 +0000 (3 13:22 -0700)
treed29ad7f540a7644726824d4e6027e66805a7f34e
parent43df4f86e035056605ceb757029181d7ddee1e7e
correct argument checking test for git hash-object

Because the file name given to stdin did not exist, git hash-object
fails to open it and exits with non-zero error code.

Thus the test may pass even if there is an error in argument checking.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1007-hash-object.sh