mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
fix: should use File.Create instead of File.OpenWrite
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -548,7 +548,7 @@ namespace SourceGit.ViewModels
|
||||
|
||||
try
|
||||
{
|
||||
using var stream = File.OpenWrite(Path.Combine(_gitDir, "sourcegit.settings"));
|
||||
using var stream = File.Create(Path.Combine(_gitDir, "sourcegit.settings"));
|
||||
JsonSerializer.Serialize(stream, _settings, JsonCodeGen.Default.RepositorySettings);
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user