Skip to content

Commit 91a301a

Browse files
committed
Merge branch 'sc/bundle-uri-use-all-refs-in-bundle' into jch
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
2 parents e6791b2 + 3b20c83 commit 91a301a

File tree

2 files changed

+118
-87
lines changed

2 files changed

+118
-87
lines changed

bundle-uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int unbundle_from_file(struct repository *r, const char *file)
403403
const char *branch_name;
404404
int has_old;
405405

406-
if (!skip_prefix(refname->string, "refs/heads/", &branch_name))
406+
if (!skip_prefix(refname->string, "refs/", &branch_name))
407407
continue;
408408

409409
strbuf_setlen(&bundle_ref, bundle_prefix_len);

0 commit comments

Comments
 (0)