checkout: check_linked_checkout: improve "already checked out" aesthetic
commit39e69e151951040b952b3c81d2ee40b827fd9abf
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 17 Jul 2015 23:00:01 +0000 (17 19:00 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 18:29:24 +0000 (20 11:29 -0700)
tree5263e42a3072e7559e1e467ed9909fbe14285848
parent4341460d92c2857193954158f35aaf7518aa7a58
checkout: check_linked_checkout: improve "already checked out" aesthetic

When check_linked_checkout() discovers that the branch is already
checked out elsewhere, it emits the diagnostic:

    'blorp' is already checked out at '/some/path/.git'

which is misleading since "checked out at" implies the working tree, but
".git" is the location of the repository administrative files. Fix by
dropping ".git" from the message.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c