From 47d84b6abcd2fbb2e84495663407829c9bb0da67 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 4 Nov 2011 14:05:22 -0700 Subject: [PATCH] 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 --- refs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/refs.c b/refs.c index cab4394ad..ff20eeb5b 100644 --- a/refs.c +++ b/refs.c @@ -998,6 +998,7 @@ const char *ref_rev_parse_rules[] = { const char *ref_fetch_rules[] = { "%.*s", "refs/%.*s", + "refs/tags/%.*s", "refs/heads/%.*s", NULL }; -- 2.26.2