Browse Source

Quick fix on #476

tags/v1.2.0-rc1
Unknwon 11 years ago
parent
commit
ae3639868e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/git/version.go

+ 1
- 1
modules/git/version.go View File

@@ -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


Loading…
Cancel
Save