Skip to content

Commit 6b0a0a5

Browse files
committed
StageFixture: include a config for core.autocrlf
Hack to workaround indeterminate line endings on machines running tests.
1 parent 3cfb6f7 commit 6b0a0a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LibGit2Sharp.Tests/StageFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ public void CanStageConflictedIgnoredFiles(string filename, FileStatus expected)
365365
var path = SandboxMergedTestRepo();
366366
using (var repo = new Repository(path))
367367
{
368+
repo.Config.Set<bool>("core.autocrlf", true);
368369
File.WriteAllText(Path.Combine(repo.Info.WorkingDirectory, ".gitignore"),
369370
String.Format("{0}\n", filename));
370371

0 commit comments

Comments
 (0)