Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 4, 2019
1 parent 1b80b8d commit cba6a1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func newTempDir(t *testing.T) string {
t.Fatalf("os.Getwd(): %s", err)
}

return tmpdir
return toFullPath(tmpdir)
}

func tmpEnv(key, val string) func() {
Expand Down
2 changes: 0 additions & 2 deletions local_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ func LocalRepositoryFromFullPath(fullPath string, backend *VCSBackend) (*LocalRe
return nil, err
}

println("debugging", fullPath, toFullPath(fullPath))
fullPath = toFullPath(fullPath)

var root string
for _, root = range roots {
root = toFullPath(root)
println(fullPath, root)
if !strings.HasPrefix(fullPath, root) {
continue
}
Expand Down

0 comments on commit cba6a1d

Please sign in to comment.