Skip to content

Commit 0799835

Browse files
committed
It's getting scarier
1 parent 839a816 commit 0799835

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

LibGit2Sharp.Tests/StatusFixture.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,17 @@ public void CanHandleTwoStatusEntryChangesWithTheSamePath()
653653

654654
if (IsRunningOnUnix())
655655
{
656+
Assert.Equal(expected, status.Missing.Single().FilePath);
657+
Assert.Equal(expected, status.RenamedInWorkDir.Single().FilePath);
658+
659+
var indexToWorkDirRenameDetails = status.RenamedInWorkDir.Single().IndexToWorkDirRenameDetails;
660+
Console.WriteLine("old={0}", indexToWorkDirRenameDetails.OldFilePath);
661+
Console.WriteLine("new={0}", indexToWorkDirRenameDetails.NewFilePath);
656662
foreach (var entry in status)
657663
{
658-
Console.WriteLine("path={0} status={1}", entry.FilePath, entry.State);
664+
// path=include/Nu/Nu.h status=Missing
665+
// path=include/Nu/Nu.h status=RenamedInWorkDir
666+
//Console.WriteLine("path={0} status={1}", entry.FilePath, entry.State);
659667
}
660668
}
661669
else

0 commit comments

Comments
 (0)