mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
add ssh supports(unfinished)
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
orm *xorm.Engine
|
||||
repoRootPath string
|
||||
RepoRootPath string
|
||||
)
|
||||
|
||||
type Members struct {
|
||||
@@ -71,5 +71,9 @@ func setEngine() {
|
||||
|
||||
func init() {
|
||||
setEngine()
|
||||
orm.Sync(new(User))
|
||||
err := orm.Sync(new(User), new(PublicKey), new(Repo), new(Access))
|
||||
if err != nil {
|
||||
log.Error("sync database struct error: %s", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user