Skip to content

Commit

Permalink
Set core.askPass config for better auth-fail error
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Sep 19, 2023
1 parent af6b96a commit 2aed5c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2aed5c9

Please sign in to comment.