Pārlūkot izejas kodu

Fixes panic when there's no user initialized (#358)

tags/v1.0.0
Bwko pirms 7 gadiem
vecāks
revīzija
026ad4aee7
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      cmd/serve.go

+ 2
- 2
cmd/serve.go Parādīt failu

@@ -255,11 +255,11 @@ func runServ(c *cli.Context) error {
"User %s does not have level %v access to repository %s",
user.Name, requestedMode, repoPath)
}

os.Setenv("GITEA_PUSHER_NAME", user.Name)
}
}

os.Setenv("GITEA_PUSHER_NAME", user.Name)

uuid := gouuid.NewV4().String()
os.Setenv("GITEA_UUID", uuid)
// Keep the old env variable name for backward compability

Notiek ielāde…
Atcelt
Saglabāt