diff --git a/backend/LexBoxApi/Services/HgService.cs b/backend/LexBoxApi/Services/HgService.cs index 632d79cd4..41e2cc60c 100644 --- a/backend/LexBoxApi/Services/HgService.cs +++ b/backend/LexBoxApi/Services/HgService.cs @@ -273,7 +273,7 @@ public async Task ExecuteHgRecover(string code, CancellationToken t return response; } - public Task InvalidateDirCache(string code) + public Task InvalidateDirCache(string code) { var repoPath = Path.Join(PrefixRepoFilePath(code)); if (Directory.Exists(repoPath)) @@ -289,8 +289,9 @@ public Task InvalidateDirCache(string code) } catch (Exception) { } } - var result = ExecuteHgCommandServerCommand(code, "invalidatedircache", default); - return result; + return Task.CompletedTask; + // var result = ExecuteHgCommandServerCommand(code, "invalidatedircache", default); + // return result; } public async Task GetTipHash(string code) diff --git a/backend/LexCore/ServiceInterfaces/IHgService.cs b/backend/LexCore/ServiceInterfaces/IHgService.cs index 7b77d747d..9435226d2 100644 --- a/backend/LexCore/ServiceInterfaces/IHgService.cs +++ b/backend/LexCore/ServiceInterfaces/IHgService.cs @@ -19,7 +19,7 @@ public interface IHgService Task GetLexEntryCount(string code, ProjectType projectType); Task GetRepositoryIdentifier(Project project); Task ExecuteHgRecover(string code, CancellationToken token); - Task InvalidateDirCache(string code); + Task InvalidateDirCache(string code); bool HasAbandonedTransactions(string projectCode); Task HgCommandHealth(); }