diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-11-04 14:05:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-07 15:34:30 -0800 |
commit | 47d84b6abcd2fbb2e84495663407829c9bb0da67 (patch) | |
tree | 06a130187b70ef7d2e1899bab32245f4bd578f7f /refs.c | |
parent | 57b58db74c3272ac13d5d201ecedf6483b34cdfe (diff) | |
download | git-47d84b6abcd2fbb2e84495663407829c9bb0da67.tar.gz git-47d84b6abcd2fbb2e84495663407829c9bb0da67.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 }; |