summaryrefslogtreecommitdiff
path: root/t/annotate-tests.sh
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2013-10-18 11:25:58 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-10-18 12:57:16 -0700
commitbca39695343ecb113b30c72a3b2e0cb7e73757d8 (patch)
tree1694059fa4ce68468a592c0072b6f6d2bb654d1c /t/annotate-tests.sh
parentcheckout: allow dwim for branch creation for "git checkout $branch --" (diff)
downloadtgif-bca39695343ecb113b30c72a3b2e0cb7e73757d8.tar.xz
checkout: proper error message on 'git checkout foo bar --'
The previous code was detecting the presence of "--" by looking only at argument 1. As a result, "git checkout foo bar --" was interpreted as an ambiguous file/revision list, and errored out with: error: pathspec 'foo' did not match any file(s) known to git. error: pathspec 'bar' did not match any file(s) known to git. error: pathspec '--' did not match any file(s) known to git. This patch fixes it by walking through the argument list to find the "--", and now complains about the number of references given. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/annotate-tests.sh')
0 files changed, 0 insertions, 0 deletions