t2024: Show failure to use refspec when DWIMming remote branch names
commitec2764ee8fb9a37cc92e0a1bce3b49ae2de0ffbc
authorJohan Herland <johan@herland.net>
Sun, 21 Apr 2013 21:52:00 +0000 (21 23:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Apr 2013 22:14:40 +0000 (21 15:14 -0700)
treee0e71b82601867916859c4b954f56fe46af51d62
parent399e4a1c560ae8caf338e13a73851089c384230a
t2024: Show failure to use refspec when DWIMming remote branch names

When using "git checkout foo" to DWIM the creation of local "foo" from some
existing upstream "foo", we assume conventional refspecs as created by "git
clone" or "git remote add", and fail to work correctly if the current
refspecs do not follow the conventional "refs/remotes/$remote/*" pattern.

Improved-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2024-checkout-dwim.sh