summaryrefslogtreecommitdiff
path: root/Documentation/git-remote-helpers.txto
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2020-05-24 09:22:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-24 16:19:41 -0700
commit16ab794b8257dd08906994d5cccacfa3886aa543 (patch)
treeec26962828f670b65ceccfe637ee6a4558a0331d /Documentation/git-remote-helpers.txto
parentMerge https://github.com/prati0100/git-gui (diff)
downloadtgif-16ab794b8257dd08906994d5cccacfa3886aa543.tar.xz
checkout: add tests for -b and --track
Test git checkout -b with and without --track and demonstrate unexpected error messages when it's given an extra (i.e. unsupported) path argument. In both cases it reports: $ git checkout -b foo origin/master bar fatal: 'bar' is not a commit and a branch 'foo' cannot be created from it The problem is that the start point we gave for the new branch is "origin/master" and "bar" is just some extra argument -- it could even be a valid commit, which would make the message even more confusing. We have more fitting error messages in git commit, but get confused; use the text of the rights ones in the tests. Reported-by: Dana Dahlstrom <dahlstrom@google.com> Original-test-by: Jeff King <peff@peff.net> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-remote-helpers.txto')
0 files changed, 0 insertions, 0 deletions