]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1400-update-ref.sh
t1400: test one mistake at a time
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 7 Apr 2014 13:48:07 +0000 (15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2014 19:09:13 +0000 (12:09 -0700)
commitff6ee39525244b7c1bca1953743fdcc14605a031
tree916bf232fd2319de937b2900587f3a3885df579d
parent1fbd504942b20a541ba4fcbe90d3ea21b03717e4
t1400: test one mistake at a time

This case wants to test passing a bad refname to the "update" command.
But it also passes too few arguments to "update", which muddles the
situation: which error should be diagnosed?  So split this test into
two:

* One that passes too few arguments to update

* One that passes all three arguments to "update", but with a bad
  refname.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh