From f868ac8aeb3cb8609cb1c593ea1498061f6781fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 1 Feb 2026 23:33:22 +0100 Subject: [PATCH] Take 2 on fixing the tests on Windows --- internal/lib/sync.go | 2 +- testscripts/default.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/lib/sync.go b/internal/lib/sync.go index 7dfbab5..41e9955 100644 --- a/internal/lib/sync.go +++ b/internal/lib/sync.go @@ -359,7 +359,7 @@ func (s *Syncer) updateGitignore(repos map[string]string) error { var paths []string for localPath := range repos { - paths = append(paths, localPath+"/") + paths = append(paths, filepath.ToSlash(localPath)+"/") } sort.Strings(paths) diff --git a/testscripts/default.txt b/testscripts/default.txt index af5afe4..ee28a73 100644 --- a/testscripts/default.txt +++ b/testscripts/default.txt @@ -2,6 +2,7 @@ dostounix golden/tree1.txt dostounix golden/tree2.txt dostounix golden/gitignore1.txt +dostounix golden/gitignore2.txt gitjoin ! stdout .