mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: submodule status is not updated when branch changed (#339)
This commit is contained in:
parent
e05264e35d
commit
747c8054f5
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ namespace SourceGit.Models
|
||||||
(name.StartsWith("worktrees/", StringComparison.Ordinal) && name.EndsWith("/HEAD", StringComparison.Ordinal)))
|
(name.StartsWith("worktrees/", StringComparison.Ordinal) && name.EndsWith("/HEAD", StringComparison.Ordinal)))
|
||||||
{
|
{
|
||||||
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
|
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
|
||||||
|
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
||||||
}
|
}
|
||||||
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
|
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue