summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-11-04 21:05:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-07 23:34:30 (GMT)
commit47d84b6abcd2fbb2e84495663407829c9bb0da67 (patch)
tree06a130187b70ef7d2e1899bab32245f4bd578f7f /refs.c
parent57b58db74c3272ac13d5d201ecedf6483b34cdfe (diff)
downloadgit-47d84b6abcd2fbb2e84495663407829c9bb0da67.zip
git-47d84b6abcd2fbb2e84495663407829c9bb0da67.tar.gz
git-47d84b6abcd2fbb2e84495663407829c9bb0da67.tar.bz2
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>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c1
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
};