Skip to content

Commit ce74203

Browse files
committed
fix: local changes do not updated after submodule changed (#339)
1 parent d37f53a commit ce74203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Models/Watcher.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ private void OnRepositoryChanged(object o, FileSystemEventArgs e)
182182
if (name.StartsWith("modules", StringComparison.Ordinal) && name.EndsWith("HEAD", StringComparison.Ordinal))
183183
{
184184
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
185+
_updateWC = DateTime.Now.AddSeconds(1).ToFileTime();
185186
}
186187
else if (name.StartsWith("refs/tags", StringComparison.Ordinal))
187188
{
@@ -220,7 +221,7 @@ private void OnWorkingCopyChanged(object o, FileSystemEventArgs e)
220221
if (name.StartsWith(submodule, StringComparison.Ordinal))
221222
{
222223
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
223-
break;
224+
return;
224225
}
225226
}
226227
}

0 commit comments

Comments
 (0)