mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 16:32:40 +01:00
Fixes panic when there's no user initialized (#358)
This commit is contained in:
parent
83ed234472
commit
026ad4aee7
1 changed files with 2 additions and 2 deletions
|
@ -255,10 +255,10 @@ func runServ(c *cli.Context) error {
|
||||||
"User %s does not have level %v access to repository %s",
|
"User %s does not have level %v access to repository %s",
|
||||||
user.Name, requestedMode, repoPath)
|
user.Name, requestedMode, repoPath)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
os.Setenv("GITEA_PUSHER_NAME", user.Name)
|
os.Setenv("GITEA_PUSHER_NAME", user.Name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uuid := gouuid.NewV4().String()
|
uuid := gouuid.NewV4().String()
|
||||||
os.Setenv("GITEA_UUID", uuid)
|
os.Setenv("GITEA_UUID", uuid)
|
||||||
|
|
Loading…
Reference in a new issue