aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-03 15:09:53 -0400
committerUnknwon <u@gogs.io>2017-04-03 15:09:53 -0400
commitc07899701ac24867e18726e0502abb6c43b1e259 (patch)
treebe77b76a7327b819aaa4be51315ce8d97f1468e8 /vendor/github.com
parentab42671c6380d32e1f7e45332e1818c9b7fec024 (diff)
vendor: update github.com/gogits/git-module
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/gogits/git-module/README.md2
-rw-r--r--vendor/github.com/gogits/git-module/repo.go5
2 files changed, 1 insertions, 6 deletions
diff --git a/vendor/github.com/gogits/git-module/README.md b/vendor/github.com/gogits/git-module/README.md
index 9dedf5a9..f9569ceb 100644
--- a/vendor/github.com/gogits/git-module/README.md
+++ b/vendor/github.com/gogits/git-module/README.md
@@ -5,7 +5,7 @@ Package git-module is a Go module for Git access through shell commands.
## Limitations
- Go version must be at least **1.4**.
-- Git version must be no less than **1.7.1**, and greater than or equal to **1.8.0** is recommended.
+- Git version must be no less than **1.7.1**, and greater than or equal to **1.8.3** is recommended.
- For Windows users, try use as new a version as possible.
## License
diff --git a/vendor/github.com/gogits/git-module/repo.go b/vendor/github.com/gogits/git-module/repo.go
index 02f264c1..aef9f385 100644
--- a/vendor/github.com/gogits/git-module/repo.go
+++ b/vendor/github.com/gogits/git-module/repo.go
@@ -15,7 +15,6 @@ import (
"time"
"github.com/Unknwon/com"
- "github.com/mcuadros/go-version"
)
// Repository represents a Git repository.
@@ -249,10 +248,6 @@ const (
// GetRepoSize returns disk usage report of repository in given path.
func GetRepoSize(repoPath string) (*CountObject, error) {
- if version.Compare(gitVersion, "1.8.3", "<") {
- return nil, ErrUnsupportedVersion{"1.8.3"}
- }
-
cmd := NewCommand("count-objects", "-v")
stdout, err := cmd.RunInDir(repoPath)
if err != nil {