mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix: local changes do not updated after submodule changed (#339)
This commit is contained in:
parent
d37f53a4f3
commit
ce7420354d
1 changed files with 2 additions and 1 deletions
|
@ -182,6 +182,7 @@ namespace SourceGit.Models
|
||||||
if (name.StartsWith("modules", StringComparison.Ordinal) && name.EndsWith("HEAD", StringComparison.Ordinal))
|
if (name.StartsWith("modules", StringComparison.Ordinal) && name.EndsWith("HEAD", StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
||||||
|
_updateWC = DateTime.Now.AddSeconds(1).ToFileTime();
|
||||||
}
|
}
|
||||||
else if (name.StartsWith("refs/tags", StringComparison.Ordinal))
|
else if (name.StartsWith("refs/tags", StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
|
@ -220,7 +221,7 @@ namespace SourceGit.Models
|
||||||
if (name.StartsWith(submodule, StringComparison.Ordinal))
|
if (name.StartsWith(submodule, StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue