mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Fixing bug
This commit is contained in:
2
serve.go
2
serve.go
@@ -86,7 +86,7 @@ func runServ(*cli.Context) {
|
||||
|
||||
os.Setenv("userName", user.Name)
|
||||
os.Setenv("userId", strconv.Itoa(int(user.Id)))
|
||||
repo, err := models.GetRepositoryByName(user, repoName)
|
||||
repo, err := models.GetRepositoryByName(user.Id, repoName)
|
||||
if err != nil {
|
||||
println("Unavilable repository", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user