mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
Merge branch 'os/fetch-submodule-optim'
Optimization around submodule handling. * os/fetch-submodule-optim: fetch: do not look for submodule changes in unchanged refs
This commit is contained in:
commit
bcb68bff80
|
@ -966,8 +966,10 @@ static int store_updated_refs(const char *raw_url, const char *remote_name,
|
|||
ref->force = rm->peer_ref->force;
|
||||
}
|
||||
|
||||
if (recurse_submodules != RECURSE_SUBMODULES_OFF)
|
||||
if (recurse_submodules != RECURSE_SUBMODULES_OFF &&
|
||||
(!rm->peer_ref || !oideq(&ref->old_oid, &ref->new_oid))) {
|
||||
check_for_new_submodule_commits(&rm->old_oid);
|
||||
}
|
||||
|
||||
if (!strcmp(rm->name, "HEAD")) {
|
||||
kind = "";
|
||||
|
|
Loading…
Reference in a new issue