forked from forgejo/forgejo
add ssh supports(unfinished)
This commit is contained in:
parent
94311e187f
commit
be0ba9ea88
8 changed files with 305 additions and 39 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue