summaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-16 20:58:06 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-16 20:58:06 -0400
commitae3639868ee2d720dc50fc81be712072445ab6ed (patch)
tree903b45e01fc29d77de751faf6a383cbe9103bed7 /modules/git
parentd082e821a049cdff74a78735f8457371f9b3f2f5 (diff)
downloadgitea-ae3639868ee2d720dc50fc81be712072445ab6ed.tar.gz
gitea-ae3639868ee2d720dc50fc81be712072445ab6ed.zip
Quick fix on #476
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/version.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/version.go b/modules/git/version.go
index 546397aa62..9908d11e20 100644
--- a/modules/git/version.go
+++ b/modules/git/version.go
@@ -35,7 +35,7 @@ func ParseVersion(verStr string) (*Version, error) {
case 1:
v.Minor, _ = com.StrTo(s).Int()
case 2:
- v.Patch, _ = com.StrTo(s).Int()
+ v.Patch, _ = com.StrTo(strings.TrimSpace(s)).Int()
}
}
return v, nil