diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2009-04-04 22:02:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-05 00:25:08 -0700 |
commit | f3a186ffade15f793ea17713a10e10ec4f26ff11 (patch) | |
tree | 80b6ee8d717441be0e83158f36d2d7d9a4e94101 /t/t3200-branch.sh | |
parent | send-email: fix nasty bug in ask() function (diff) | |
download | tgif-f3a186ffade15f793ea17713a10e10ec4f26ff11.tar.xz |
bisect: improve error message when branch checkout fails
In "git-bisect.sh" the "git checkout" command is only used to
change the current branch, but it is used like this:
git checkout "$branch"
which will output the following misleading error message when
it fails:
error: pathspec 'foo' did not match any file(s) known to git.
This patch change the way we use "git checkout" like this:
git checkout "$branch" --
so that we will get the following error message:
fatal: invalid reference: foo
which is better.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3200-branch.sh')
0 files changed, 0 insertions, 0 deletions