mirror of
https://github.com/gogs/gogs.git
synced 2026-03-01 09:40:55 +01:00
vendor: update github.com/gogits/git-module
This commit is contained in:
2
vendor/github.com/gogits/git-module/README.md
generated
vendored
2
vendor/github.com/gogits/git-module/README.md
generated
vendored
@@ -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
|
||||
|
||||
5
vendor/github.com/gogits/git-module/repo.go
generated
vendored
5
vendor/github.com/gogits/git-module/repo.go
generated
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user