From: Junio C Hamano Date: Tue, 08 Nov 2011 03:00:37 GMT Subject: [PATCH v2 04/12] fetch: allow "git fetch $there v1.0" to fetch a tag Message-ID: <1320721245-13223-5-git-send-email-gitster@pobox.com> In-Reply-To: <1320721245-13223-1-git-send-email-gitster@pobox.com> 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/refs.c b/refs.c index cab4394..ff20eeb 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 }; -- 1.7.8.rc0.128.g31aa4