From 2275fa7d0c75d20103f90b0e1616937d5a9fc5e6 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Fri, 23 Oct 2015 00:44:33 +0200 Subject: update version --- .travis.yml | 2 +- client.go | 3 ++- 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: 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{}} } 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 { -- cgit