diff --git a/main.go b/main.go
index 2a0945538..846ad24e8 100644
--- a/main.go
+++ b/main.go
@@ -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",