Skip to content

Commit

Permalink
fetch: allow "git fetch $there v1.0" to fetch a tag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 7, 2011
1 parent 57b58db commit 47d84b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 47d84b6

Please sign in to comment.