mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 14:39:10 +00:00
submodule: only examine idx & head given a config
This commit is contained in:
parent
0fbff82b57
commit
60c2bf47e4
@ -512,12 +512,12 @@ int git_submodule__map(git_repository *repo, git_strmap *map)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
/* add back submodule information from index */
|
/* add back submodule information from index */
|
||||||
if (idx) {
|
if (mods && idx) {
|
||||||
if ((error = submodules_from_index(map, idx, mods)) < 0)
|
if ((error = submodules_from_index(map, idx, mods)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
/* add submodule information from HEAD */
|
/* add submodule information from HEAD */
|
||||||
if (head) {
|
if (mods && head) {
|
||||||
if ((error = submodules_from_head(map, head, mods)) < 0)
|
if ((error = submodules_from_head(map, head, mods)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user