mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 21:21:17 +00:00
Use name from callback to lookup submodule
This commit is contained in:
parent
20aa1e59db
commit
b1fe13bba4
|
@ -294,14 +294,14 @@ public class StageStatusEnumerator : Object
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_repository.submodule_foreach((submodule) => {
|
d_repository.submodule_foreach((submodule, name) => {
|
||||||
submodule_paths.add(submodule.get_path());
|
submodule_paths.add(submodule.get_path());
|
||||||
|
|
||||||
if (!d_ignored_submodules.contains(submodule.get_name()))
|
if (!d_ignored_submodules.contains(name))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
add(new StageStatusSubmodule(d_repository.lookup_submodule(submodule.get_name())));
|
add(new StageStatusSubmodule(d_repository.lookup_submodule(name)));
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue