Skip to content

Commit

Permalink
fix: Always use forward slashes to separate Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 12, 2024
1 parent d48d5a5 commit 9437b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chezmoi/abspath.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (ps AbsPaths) Swap(i, j int) { ps[i], ps[j] = ps[j], ps[i] }
// NewAbsPath returns a new AbsPath.
func NewAbsPath(absPath string) AbsPath {
return AbsPath{
absPath: absPath,
absPath: filepath.ToSlash(absPath),
}
}

Expand Down

0 comments on commit 9437b62

Please sign in to comment.