Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit e7a41d8

Browse files
Fix file:// URI on Windows
1 parent d3e5403 commit e7a41d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gps/vcs_source_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func TestGitSourceListVersionsNoHEAD(t *testing.T) {
547547
// because it points at a nonexistent branch
548548
h.RunGit(repoPath, "symbolic-ref", "HEAD", "refs/heads/nonexistent")
549549

550-
un := "file://" + repoPath
550+
un := "file://" + filepath.ToSlash(repoPath)
551551
u, err := url.Parse(un)
552552
if err != nil {
553553
t.Fatalf("Error parsing URL %s: %s", un, err)

0 commit comments

Comments
 (0)