aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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