Browse Source

Remove code for checking ssh-keygen

pull/2879/head
Unknwon 9 years ago
parent
commit
004fb30ebe
  1. 2
      gogs.go
  2. 6
      modules/setting/setting.go
  3. 2
      templates/.VERSION

2
gogs.go

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.9.13.0318" const APP_VER = "0.9.13.0319"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

6
modules/setting/setting.go

@ -361,12 +361,6 @@ func NewContext() {
} else if err = os.MkdirAll(SSH.KeyTestPath, 0644); err != nil { } else if err = os.MkdirAll(SSH.KeyTestPath, 0644); err != nil {
log.Fatal(4, "Fail to create '%s': %v", SSH.KeyTestPath, err) 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() SSH.MinimumKeySizeCheck = sec.Key("MINIMUM_KEY_SIZE_CHECK").MustBool()

2
templates/.VERSION

@ -1 +1 @@
0.9.13.0318 0.9.13.0319
Loading…
Cancel
Save