Skip to content

Commit 747c805

Browse files
committed
fix: submodule status is not updated when branch changed (#339)
1 parent e05264e commit 747c805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Models/Watcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ private void OnRepositoryChanged(object o, FileSystemEventArgs e)
198198
(name.StartsWith("worktrees/", StringComparison.Ordinal) && name.EndsWith("/HEAD", StringComparison.Ordinal)))
199199
{
200200
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
201+
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
201202
}
202203
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
203204
{

0 commit comments

Comments
 (0)