fix: submodule status is not updated when branch changed (#339)

This commit is contained in:
leo 2024-08-09 18:29:04 +08:00
parent e05264e35d
commit 747c8054f5
No known key found for this signature in database

View file

@ -198,6 +198,7 @@ namespace SourceGit.Models
(name.StartsWith("worktrees/", StringComparison.Ordinal) && name.EndsWith("/HEAD", StringComparison.Ordinal)))
{
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
}
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
{