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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user