1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20009 from anusha-ragunathan/to-slash

Fix ReadAll to run on Windows.
This commit is contained in:
Brian Goff 2016-02-04 19:58:20 -05:00
commit 675fe313ee

View file

@ -25,6 +25,7 @@ func ReadAll(reader io.ReadCloser) ([]string, error) {
continue continue
} }
pattern = filepath.Clean(pattern) pattern = filepath.Clean(pattern)
pattern = filepath.ToSlash(pattern)
excludes = append(excludes, pattern) excludes = append(excludes, pattern)
} }
if err := scanner.Err(); err != nil { if err := scanner.Err(); err != nil {