Skip to content

Commit f868ac8

Browse files
committed
Take 2 on fixing the tests on Windows
1 parent a46bdb0 commit f868ac8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/lib/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (s *Syncer) updateGitignore(repos map[string]string) error {
359359

360360
var paths []string
361361
for localPath := range repos {
362-
paths = append(paths, localPath+"/")
362+
paths = append(paths, filepath.ToSlash(localPath)+"/")
363363
}
364364
sort.Strings(paths)
365365

testscripts/default.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
dostounix golden/tree1.txt
33
dostounix golden/tree2.txt
44
dostounix golden/gitignore1.txt
5+
dostounix golden/gitignore2.txt
56

67
gitjoin
78
! stdout .

0 commit comments

Comments
 (0)