Skip to content

Commit 7a47420

Browse files
committed
Revert change on install
1 parent aee8834 commit 7a47420

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

routers/install/install.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,10 @@ func Install(ctx *context.Context) {
120120

121121
// Note(unknown): it's hard for Windows users change a running user,
122122
// so just use current one if config says default.
123-
if setting.RunUser != "" {
124-
form.RunUser = setting.RunUser
125-
} else {
123+
if setting.IsWindows && setting.RunUser == "git" {
126124
form.RunUser = user.CurrentUsername()
127-
if form.RunUser == "" {
128-
form.RunUser = "git"
129-
}
125+
} else {
126+
form.RunUser = setting.RunUser
130127
}
131128

132129
form.Domain = setting.Domain

0 commit comments

Comments
 (0)