fetch: allow "git fetch $there v1.0" to fetch a tag
You can already do so with "git fetch $there tags/v1.0" but if it is not ambiguous there is no reason to force users to type more. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Nov 4, 2011 at 14:05 UTC
47d84b6abcd2fbb2e84495663407829c9bb0da67
1 file changed
+1
refs.c
+1
@@ -998,6 +998,7 @@ const char *ref_rev_parse_rules[] = {
998
const char *ref_fetch_rules[] = {
999
"%.*s",
1000
"refs/%.*s",
1001
+ "refs/tags/%.*s",
1002
"refs/heads/%.*s",
1003
NULL
1004
};