Skip to content

Commit

Permalink
Fix git version check with four digits (1.8.3.1) (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
fragfutter authored and lafriks committed Aug 1, 2017
1 parent 66e8262 commit 539d9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ func NewContext() {
log.Fatal(4, "Error retrieving git version: %v", err)
}

splitVersion := strings.SplitN(binVersion, ".", 3)
splitVersion := strings.SplitN(binVersion, ".", 4)

majorVersion, err := strconv.ParseUint(splitVersion[0], 10, 64)
if err != nil {
Expand Down

0 comments on commit 539d9f4

Please sign in to comment.