Merge pull request #1523 from sschuberth/windows-10-path-comparison

Make path comparison robust against Windows short / long path issues
This commit is contained in:
Taylor Blau 2016-09-13 12:27:12 -07:00 committed by GitHub
commit b7b1f2b798

@ -291,7 +291,17 @@ func TestGitAndRootDirs(t *testing.T) {
t.Fatal(err)
}
assert.Equal(t, git, filepath.Join(root, ".git"))
expected, err := os.Stat(git)
if err != nil {
t.Fatal(err)
}
actual, err := os.Stat(filepath.Join(root, ".git"))
if err != nil {
t.Fatal(err)
}
assert.True(t, os.SameFile(expected, actual))
}
func TestGetTrackedFiles(t *testing.T) {