aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_commit.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-16 11:29:53 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-16 11:29:53 -0400
commit62f21ff3ed1b85a1d3a1eab73da354e4f6e8794a (patch)
tree8a24c36310668ea14915883a367f8da194168bdc /modules/git/repo_commit.go
parent0d9c41be7d7d4ae1d2a28931be5565c8f6d3f792 (diff)
downloadgitea-62f21ff3ed1b85a1d3a1eab73da354e4f6e8794a.tar.gz
gitea-62f21ff3ed1b85a1d3a1eab73da354e4f6e8794a.zip
Work on #476
Diffstat (limited to 'modules/git/repo_commit.go')
-rw-r--r--modules/git/repo_commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go
index c9258927bb..cd0181c481 100644
--- a/modules/git/repo_commit.go
+++ b/modules/git/repo_commit.go
@@ -137,7 +137,7 @@ func (repo *Repository) GetCommit(commitId string) (*Commit, error) {
}
func (repo *Repository) commitsCount(id sha1) (int, error) {
- if gitVer.Compare(MustParseVersion("1.8.0")) == -1 {
+ if gitVer.LessThan(MustParseVersion("1.8.0")) {
stdout, stderr, err := com.ExecCmdDirBytes(repo.Path, "git", "log", "--pretty=format:''", id.String())
if err != nil {
return 0, errors.New(string(stderr))