summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorChristoph Handel <fragfutter@gmail.com>2017-08-01 20:59:22 +0200
committerLauris BH <lauris@nix.lv>2017-08-01 21:59:22 +0300
commit539d9f4c3070abb0f024b133a4f53187a76cbcb7 (patch)
treea2a5d8bc3349e1f7e42591c9e67855cf29290d88 /modules
parent66e8262530fb7906a3f8f5933fd6dbd6152bf898 (diff)
downloadgitea-539d9f4c3070abb0f024b133a4f53187a76cbcb7.tar.gz
gitea-539d9f4c3070abb0f024b133a4f53187a76cbcb7.zip
Fix git version check with four digits (1.8.3.1) (#2236)
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 82187e81be..5bd2495287 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -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 {