mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-11 23:57:21 -08:00
fix: crach while submodule changed (#881)
Some checks failed
Some checks failed
This commit is contained in:
parent
eea3d5db6c
commit
5d791b63bf
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ namespace SourceGit.Models
|
||||||
{
|
{
|
||||||
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
|
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
|
||||||
|
|
||||||
lock (_submodules)
|
lock (_lockSubmodule)
|
||||||
{
|
{
|
||||||
if (_submodules.Count > 0)
|
if (_submodules.Count > 0)
|
||||||
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
_updateSubmodules = DateTime.Now.AddSeconds(1).ToFileTime();
|
||||||
|
@ -195,7 +195,7 @@ namespace SourceGit.Models
|
||||||
if (name == ".git" || name.StartsWith(".git/", StringComparison.Ordinal))
|
if (name == ".git" || name.StartsWith(".git/", StringComparison.Ordinal))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
lock (_submodules)
|
lock (_lockSubmodule)
|
||||||
{
|
{
|
||||||
foreach (var submodule in _submodules)
|
foreach (var submodule in _submodules)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue