aboutsummaryrefslogtreecommitdiffstats
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.go b/client.go
index 78ddbb7..8855989 100644
--- a/client.go
+++ b/client.go
@@ -7,7 +7,7 @@ import (
"net/url"
"strings"
- "gopkg.in/src-d/go-git.v1/pktline"
+ "gopkg.in/src-d/go-git.v2/pktline"
"github.com/sourcegraph/go-vcsurl"
)
@@ -19,6 +19,7 @@ type Client struct {
func NewClient(url string) *Client {
vcs, _ := vcsurl.Parse(url)
+
return &Client{url: vcs.Link(), client: &http.Client{}}
}