Use name from callback to lookup submodule

This commit is contained in:
Jesse van den Kieboom 2015-08-01 14:03:34 +02:00
parent 20aa1e59db
commit b1fe13bba4

View file

@ -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 {}
}