Skip to content

Commit 47d84b6

Browse files
committed
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 <[email protected]>
1 parent 57b58db commit 47d84b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

refs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ const char *ref_rev_parse_rules[] = {
998998
const char *ref_fetch_rules[] = {
999999
"%.*s",
10001000
"refs/%.*s",
1001+
"refs/tags/%.*s",
10011002
"refs/heads/%.*s",
10021003
NULL
10031004
};

0 commit comments

Comments
 (0)