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

Commit

Permalink
Fix file:// URI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSchuurmans committed Sep 8, 2017
1 parent d3e5403 commit 5759fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gps/vcs_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func TestGitSourceListVersionsNoHEAD(t *testing.T) {
// because it points at a nonexistent branch
h.RunGit(repoPath, "symbolic-ref", "HEAD", "refs/heads/nonexistent")

un := "file://" + repoPath
un := "file://" + filepath.toSlash(repoPath)
u, err := url.Parse(un)
if err != nil {
t.Fatalf("Error parsing URL %s: %s", un, err)
Expand Down

0 comments on commit 5759fae

Please sign in to comment.