mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 11:24:02 +08:00
fix: main thread deadlock cause by calling .Result directly (#1720)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -10,6 +10,11 @@ namespace SourceGit.Commands
|
||||
Args = "rev-parse --show-toplevel";
|
||||
}
|
||||
|
||||
public Result GetResult()
|
||||
{
|
||||
return ReadToEnd();
|
||||
}
|
||||
|
||||
public async Task<Result> GetResultAsync()
|
||||
{
|
||||
return await ReadToEndAsync().ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user