Merge branch 'jk/fetch-all-peeled-fix'
"git fetch-pack --all" used to unnecessarily fail upon seeing an annotated tag that points at an object other than a commit. * jk/fetch-all-peeled-fix: fetch-pack: test explicitly that --all can fetch tag references pointing to non-commits fetch-pack: don't try to fetch peel values with --all
This commit is contained in:
@ -657,11 +657,11 @@ static void filter_refs(struct fetch_pack_args *args,
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!keep && args->fetch_all &&
|
||||
(!args->deepen || !starts_with(ref->name, "refs/tags/")))
|
||||
keep = 1;
|
||||
if (!keep && args->fetch_all &&
|
||||
(!args->deepen || !starts_with(ref->name, "refs/tags/")))
|
||||
keep = 1;
|
||||
}
|
||||
|
||||
if (keep) {
|
||||
*newtail = ref;
|
||||
|
Reference in New Issue
Block a user