summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-19 20:31:23 -0400
committerUnknwon <u@gogs.io>2016-03-19 20:31:23 -0400
commit004fb30ebe403625b2315b284a85124611ba303b (patch)
treeab048ff3569b713b56d3faa9be7889ee369e6d9b /modules
parent3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d (diff)
downloadgitea-004fb30ebe403625b2315b284a85124611ba303b.tar.gz
gitea-004fb30ebe403625b2315b284a85124611ba303b.zip
Remove code for checking ssh-keygen
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 2fbc1f2cdc..92eb04de97 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -361,12 +361,6 @@ func NewContext() {
} else if err = os.MkdirAll(SSH.KeyTestPath, 0644); err != nil {
log.Fatal(4, "Fail to create '%s': %v", SSH.KeyTestPath, err)
}
-
- if !filepath.IsAbs(SSH.KeygenPath) {
- if _, err := exec.LookPath(SSH.KeygenPath); err != nil {
- log.Fatal(4, "Fail to test '%s' command: %v (forgotten install?)", SSH.KeygenPath, err)
- }
- }
}
SSH.MinimumKeySizeCheck = sec.Key("MINIMUM_KEY_SIZE_CHECK").MustBool()