From: Junio C Hamano Date: Fri, 4 Nov 2011 21:05:22 +0000 (-0700) Subject: fetch: allow "git fetch $there v1.0" to fetch a tag X-Git-Tag: v1.7.9-rc0~1^2~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47d84b6abcd2fbb2e84495663407829c9bb0da67;p=git.git 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 --- 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 };