aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-23 00:44:33 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-23 00:44:33 +0200
commit2275fa7d0c75d20103f90b0e1616937d5a9fc5e6 (patch)
tree57ad6b6085e80cddd235d4a6aee2187bfb93827b
parentbdd9a92789d4a86b20a8d3df462df373f41acf23 (diff)
downloadgo-git-2275fa7d0c75d20103f90b0e1616937d5a9fc5e6.tar.gz
update version
-rw-r--r--.travis.yml2
-rw-r--r--client.go3
-rw-r--r--packfile/objects.go2
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 {