diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-23 00:44:33 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-10-23 00:44:33 +0200 |
commit | 2275fa7d0c75d20103f90b0e1616937d5a9fc5e6 (patch) | |
tree | 57ad6b6085e80cddd235d4a6aee2187bfb93827b | |
parent | bdd9a92789d4a86b20a8d3df462df373f41acf23 (diff) | |
download | go-git-2275fa7d0c75d20103f90b0e1616937d5a9fc5e6.tar.gz |
update version
-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 { |