Skip to content

Commit

Permalink
Fixes panic when there's no user initialized (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwko authored and tboerger committed Dec 6, 2016
1 parent 83ed234 commit 026ad4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 026ad4a

Please sign in to comment.