1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

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

This commit is contained in:
Bwko 2016-12-06 21:58:34 +01:00 committed by Thomas Boerger
parent 83ed234472
commit 026ad4aee7

View file

@ -255,10 +255,10 @@ 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)
}
}
uuid := gouuid.NewV4().String()
os.Setenv("GITEA_UUID", uuid)