diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-05-19 16:02:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-19 16:02:45 -0700 |
| commit | 4bb72548fcf486e136029005c7087cbb7e0404f6 (patch) | |
| tree | 0eb907dfe2ebda3d2f7bdd07ea76638020d1955b /bundle-uri.c | |
| parent | 0b8d22fd4030832fa64933721fa162feaa9c69d9 (diff) | |
| parent | 435b076ceb6e42c2c4c66422c036a02982b36bd4 (diff) | |
| download | git-4bb72548fcf486e136029005c7087cbb7e0404f6.tar.xz | |
Merge branch 'sc/bundle-uri-use-all-refs-in-bundle'
Bundle-URI feature did not use refs recorded in the bundle other
than normal branches as anchoring points to optimize the follow-up
fetch during "git clone"; now it is told to utilize all.
* sc/bundle-uri-use-all-refs-in-bundle:
bundle-uri: add test for bundle-uri clones with tags
bundle-uri: copy all bundle references ino the refs/bundle space
Diffstat (limited to 'bundle-uri.c')
| -rw-r--r-- | bundle-uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index 96d2ba726d..dc120664d1 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -403,7 +403,7 @@ static int unbundle_from_file(struct repository *r, const char *file) const char *branch_name; int has_old; - if (!skip_prefix(refname->string, "refs/heads/", &branch_name)) + if (!skip_prefix(refname->string, "refs/", &branch_name)) continue; strbuf_setlen(&bundle_ref, bundle_prefix_len); |
