We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee8834 commit 7a47420Copy full SHA for 7a47420
routers/install/install.go
@@ -120,13 +120,10 @@ func Install(ctx *context.Context) {
120
121
// Note(unknown): it's hard for Windows users change a running user,
122
// so just use current one if config says default.
123
- if setting.RunUser != "" {
124
- form.RunUser = setting.RunUser
125
- } else {
+ if setting.IsWindows && setting.RunUser == "git" {
126
form.RunUser = user.CurrentUsername()
127
- if form.RunUser == "" {
128
- form.RunUser = "git"
129
- }
+ } else {
+ form.RunUser = setting.RunUser
130
}
131
132
form.Domain = setting.Domain
0 commit comments