mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-12 10:53:29 +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
|
||||
{
|
||||
d_repository.submodule_foreach((submodule) => {
|
||||
d_repository.submodule_foreach((submodule, name) => {
|
||||
submodule_paths.add(submodule.get_path());
|
||||
|
||||
if (!d_ignored_submodules.contains(submodule.get_name()))
|
||||
if (!d_ignored_submodules.contains(name))
|
||||
{
|
||||
try
|
||||
{
|
||||
add(new StageStatusSubmodule(d_repository.lookup_submodule(submodule.get_name())));
|
||||
add(new StageStatusSubmodule(d_repository.lookup_submodule(name)));
|
||||
} catch {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue