Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit af895fe

Browse files
committed
Don't make temp files readonly.
It was causing problems in VS2017 with certain files (`.xaml` and `.xaml.cs` files?) Fixes #1168
1 parent 6da7a75 commit af895fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/GitHub.App/Services/PullRequestService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ static string CreateTempFile(string fileName, string commitSha, string contents,
446446

447447
Directory.CreateDirectory(tempDir);
448448
File.WriteAllText(tempFile, contents, encoding);
449-
File.SetAttributes(tempFile, FileAttributes.ReadOnly);
450449
return tempFile;
451450
}
452451

0 commit comments

Comments
 (0)