aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-29 23:27:54 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-29 23:54:52 +0200
commit0c7fdeb11e353c0c444890f589013df9d531c388 (patch)
treed51e0e07a6c28765f61f2f9ef738d70d135f82ca
parent62349fea00d2f5b5f2bd2c39e2f6052aa6ef6b35 (diff)
downloadgo-git-0c7fdeb11e353c0c444890f589013df9d531c388.tar.gz
fix travis
-rw-r--r--.travis.yml1
-rw-r--r--Makefile3
-rw-r--r--README.md4
-rw-r--r--formats/objfile/reader.go2
4 files changed, 6 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index df830f0..9c6d2e1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,7 @@ 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.v4
+ - cd $GOPATH/src/gopkg.in/src-d/go-git.v4
- go get -v -t ./...
script:
diff --git a/Makefile b/Makefile
index 18e9991..b9848cc 100644
--- a/Makefile
+++ b/Makefile
@@ -14,11 +14,12 @@ COVERAGE_PROFILE = profile.out
COVERAGE_MODE = atomic
ifneq ($(origin CI), undefined)
- WORKDIR := $(TRAVIS_BUILD_DIR)
+ WORKDIR := $(GOPATH)/src/gopkg.in/src-d/go-git.v4
endif
test:
+ cd $(WORKDIR); \
$(GOTEST) ./...
test-coverage:
diff --git a/README.md b/README.md
index fa8e7a0..16b26a2 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# go-git [![GoDoc](https://godoc.org/gopkg.in/src-d/go-git.v4?status.svg)](https://godoc.org/gopkg.in/src-d/go-git.v4) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![codebeat badge](https://codebeat.co/badges/b6cb2f73-9e54-483d-89f9-4b95a911f40c)](https://codebeat.co/projects/github-com-src-d-go-git)
+# go-git [![GoDoc](https://godoc.org/gopkg.in/src-d/go-git.v3?status.svg)](https://godoc.org/gopkg.in/src-d/go-git.v4) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![codebeat badge](https://codebeat.co/badges/b6cb2f73-9e54-483d-89f9-4b95a911f40c)](https://codebeat.co/projects/github-com-src-d-go-git)
A low level and highly extensible git client library for **reading** repositories from git servers. It is written in Go from scratch, without any C dependencies.
@@ -30,7 +30,7 @@ Installation
The recommended way to install *go-git* is:
```
-go get -u gopkg.in/src-d/go-git.v4/...
+go get -u gopkg.in/src-d/go-git.v3/...
```
diff --git a/formats/objfile/reader.go b/formats/objfile/reader.go
index ab67c6a..5c319f6 100644
--- a/formats/objfile/reader.go
+++ b/formats/objfile/reader.go
@@ -6,8 +6,8 @@ import (
"io"
"strconv"
- "gopkg.in/src-d/go-git.v3/formats/packfile"
"gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/formats/packfile"
)
var (