mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 13:37:08 +08:00
gitutil: sanitize root dir on WSL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
11
util/gitutil/path_windows_test.go
Normal file
11
util/gitutil/path_windows_test.go
Normal file
@ -0,0 +1,11 @@
|
||||
package gitutil
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestSanitizePathWindows(t *testing.T) {
|
||||
assert.Equal(t, "C:\\Users\\foobar", sanitizePath("C:/Users/foobar"))
|
||||
}
|
Reference in New Issue
Block a user