diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-16 20:58:06 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-16 20:58:06 -0400 |
commit | ae3639868ee2d720dc50fc81be712072445ab6ed (patch) | |
tree | 903b45e01fc29d77de751faf6a383cbe9103bed7 /modules/git | |
parent | d082e821a049cdff74a78735f8457371f9b3f2f5 (diff) | |
download | gitea-ae3639868ee2d720dc50fc81be712072445ab6ed.tar.gz gitea-ae3639868ee2d720dc50fc81be712072445ab6ed.zip |
Quick fix on #476
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/version.go | 2 |
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 |