mirror of
https://github.com/gogs/gogs.git
synced 2025-12-21 07:39:59 +01:00
vendor: update github.com/gogits/git-module
This commit is contained in:
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