diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | client.go | 3 | ||||
-rw-r--r-- | packfile/objects.go | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 3c5021e..a4b2dd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ go: install: - rm -rf $GOPATH/src/gopkg.in/src-d - mkdir -p $GOPATH/src/gopkg.in/src-d - - ln -s $PWD $GOPATH/src/gopkg.in/src-d/go-git.v1 + - ln -s $PWD $GOPATH/src/gopkg.in/src-d/go-git.v2 - go get -v -t ./... script: @@ -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{}} } diff --git a/packfile/objects.go b/packfile/objects.go index 91425fa..6449808 100644 --- a/packfile/objects.go +++ b/packfile/objects.go @@ -7,7 +7,7 @@ import ( "strconv" "time" - "gopkg.in/src-d/go-git.v1/commons" + "gopkg.in/src-d/go-git.v2/commons" ) type Object interface { |