소스 검색

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

tags/v1.0.0
Bwko 7 년 전
부모
커밋
026ad4aee7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      cmd/serve.go

+ 2
- 2
cmd/serve.go 파일 보기

@@ -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

Loading…
취소
저장