mirror of https://github.com/go-gitea/gitea.git
parent
90f9bb12c6
commit
b7812be33a
|
@ -83,7 +83,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
|
||||||
case "Password:":
|
case "Password:":
|
||||||
return []byte(a.password), nil
|
return []byte(a.password), nil
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unknwon fromServer: %s", string(fromServer))
|
return nil, fmt.Errorf("unknown fromServer: %s", string(fromServer))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
|
@ -81,7 +81,7 @@ func Install(ctx *context.Context) {
|
||||||
form.RepoRootPath = setting.RepoRootPath
|
form.RepoRootPath = setting.RepoRootPath
|
||||||
form.LFSRootPath = setting.LFS.ContentPath
|
form.LFSRootPath = setting.LFS.ContentPath
|
||||||
|
|
||||||
// Note(unknwon): it's hard for Windows users change a running user,
|
// Note(unknown): it's hard for Windows users change a running user,
|
||||||
// so just use current one if config says default.
|
// so just use current one if config says default.
|
||||||
if setting.IsWindows && setting.RunUser == "git" {
|
if setting.IsWindows && setting.RunUser == "git" {
|
||||||
form.RunUser = user.CurrentUsername()
|
form.RunUser = user.CurrentUsername()
|
||||||
|
|
Loading…
Reference in New Issue