From dd0e3d36f764f28edfcc361f5d183bec9cb06e5e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 10 Mar 2018 12:25:44 +0000 Subject: [PATCH] git repo: Make sure to close file stream --- Sparkles/Git/GitRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkles/Git/GitRepository.cs b/Sparkles/Git/GitRepository.cs index 0049d160..560a93e3 100644 --- a/Sparkles/Git/GitRepository.cs +++ b/Sparkles/Git/GitRepository.cs @@ -247,7 +247,7 @@ namespace Sparkles.Git { string lfs_is_behind_file_path = Path.Combine (LocalPath, ".git", "lfs", "is_behind"); if (StorageType == StorageType.LargeFiles) - File.Create (lfs_is_behind_file_path); + File.Create (lfs_is_behind_file_path).Close (); var git_fetch = new GitCommand (LocalPath, "fetch --progress origin " + branch, auth_info);