diff options
author | Unknwon <u@gogs.io> | 2016-03-19 20:31:23 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-19 20:31:23 -0400 |
commit | 004fb30ebe403625b2315b284a85124611ba303b (patch) | |
tree | ab048ff3569b713b56d3faa9be7889ee369e6d9b /modules | |
parent | 3fb4f7f4980b4339fd9ef6a3ba5b0acab83d264d (diff) | |
download | gitea-004fb30ebe403625b2315b284a85124611ba303b.tar.gz gitea-004fb30ebe403625b2315b284a85124611ba303b.zip |
Remove code for checking ssh-keygen
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 6 |
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() |