Set core.askPass config for better auth-fail error

Instead of "No such device or address", which is pretty obtuse, we now
get "Authentication failed".
This commit is contained in:
Tim Hockin 2023-09-11 09:53:42 -07:00
parent af6b96ab74
commit 9bf6d7778d
1 changed files with 4 additions and 0 deletions

View File

@ -2072,6 +2072,10 @@ func (git *repoSync) SetupDefaultGitConfigs(ctx context.Context) error {
// How to manage credentials (for those modes that need it).
key: "credential.helper",
val: "cache --timeout 3600",
}, {
// Never prompt for a password.
key: "core.askPass",
val: "true",
}, {
// Mark repos as safe (avoid a "dubious ownership" error).
key: "safe.directory",