diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-08 11:43:13 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-08 11:43:13 -0700 |
| commit | c6b3824a193bc263a764d17def7df7f09ef82a2d (patch) | |
| tree | dd84f5a6b0d1e8ba365e5b8cbc4e6ee6a2dc844b /builtin/fetch.c | |
| parent | a7652bf99c654909d98f9b4d40b090357aede779 (diff) | |
| parent | 459e54b5497b53f298fe9164112f9bcb33bedb8d (diff) | |
| download | git-c6b3824a193bc263a764d17def7df7f09ef82a2d.tar.gz | |
Merge branch 'tb/refspec-fetch-cleanup'
Code clean-up.
* tb/refspec-fetch-cleanup:
refspec: replace `refspec_item_init()` with fetch/push variants
refspec: remove refspec_item_init_or_die()
refspec: replace `refspec_init()` with fetch/push variants
refspec: treat 'fetch' as a Boolean value
Diffstat (limited to 'builtin/fetch.c')
| -rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 02af505469..9830c09011 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -586,7 +586,7 @@ static struct ref *get_ref_map(struct remote *remote, struct refspec_item tag_refspec; /* also fetch all tags */ - refspec_item_init(&tag_refspec, TAG_REFSPEC, 0); + refspec_item_init_push(&tag_refspec, TAG_REFSPEC); get_fetch_map(remote_refs, &tag_refspec, &tail, 0); refspec_item_clear(&tag_refspec); } else if (tags == TAGS_DEFAULT && *autotags) { |
