Skip to content

Commit 168aa2c

Browse files
committedMay 30, 2015
StageFixture: include a .gitattributes
Hack to workaround indeterminate line endings on machines running tests.
1 parent 4981030 commit 168aa2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎LibGit2Sharp.Tests/StageFixture.cs

+2
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ public void CanStageConflictedIgnoredFiles(string filename, FileStatus expected)
365365
var path = SandboxMergedTestRepo();
366366
using (var repo = new Repository(path))
367367
{
368+
File.WriteAllText(Path.Combine(repo.Info.WorkingDirectory, ".gitattributes"),
369+
"* text=auto\n");
368370
File.WriteAllText(Path.Combine(repo.Info.WorkingDirectory, ".gitignore"),
369371
String.Format("{0}\n", filename));
370372

0 commit comments

Comments
 (0)
Please sign in to comment.