]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: mention start_name in set-upstream error messages
authorJeff King <peff@peff.net>
Tue, 2 Apr 2013 19:04:51 +0000 (15:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 23:14:12 +0000 (16:14 -0700)
commit1a15d00bb910de0a86981f0d75836feac71d1fe0
tree9bcee7e524a3cf663b32f019977516eb1ac74d46
parenta5e91c722cceb667ad05a13f9fde150cc1dbe9aa
branch: mention start_name in set-upstream error messages

If we refuse a branch operation because the tracking
start_name the user gave us is bogus, we just print
something like:

 fatal: Cannot setup tracking information; start point is not a branch

If we mention the actual name we tried to use, that may help
the user figure out why it didn't work (e.g., if they gave
us the arguments in the wrong order).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c