aboutsummaryrefslogtreecommitdiffstats
path: root/formats/packfile/reader_test.go
diff options
context:
space:
mode:
authorJoshua Sjoding <joshua.sjoding@scjalliance.com>2016-02-16 10:33:33 -0800
committerJoshua Sjoding <joshua.sjoding@scjalliance.com>2016-02-16 10:33:33 -0800
commit0d4d81e597d541e9f0639f2a0fb5249bf8b5faaa (patch)
treebe07a89623f7a6b39372550d3bc68cb9c2741662 /formats/packfile/reader_test.go
parenta9896315a1b37b66865a0eb7e94e768ef45ff3db (diff)
downloadgo-git-0d4d81e597d541e9f0639f2a0fb5249bf8b5faaa.tar.gz
File paths will now be consistent across platforms
Previously go-git used filepath.Join when walking tree structures and constructing paths, but its results are platform-dependent as it will return different results on different systems. For example, it will use backslashes as a path separator on Windows. As a result the SuiteTree.TestFiles test was failing on Windows because the returned paths didn't match what was expected. filepath.Join has been changed to path.Join, which will return consistent results for all platforms. This change makes it so that go-git will always return paths with forward-slash delimiters. Users of the library should convert the resulting file paths into platform-compatible paths when necessary.
Diffstat (limited to 'formats/packfile/reader_test.go')
0 files changed, 0 insertions, 0 deletions