git repo: Make sure to close file stream

This commit is contained in:
Hylke Bons 2018-03-10 12:25:44 +00:00
parent d1c9169c14
commit dd0e3d36f7

View file

@ -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);