Merge branch 'ds/background-maintenance-with-credential'

Background tasks "git maintenance" runs may need to use credential
information when going over the network, but a credential helper
may work only in an interactive environment, and end up blocking a
scheduled task waiting for UI.  Credential helpers can now behave
differently when they are not running interactively.

* ds/background-maintenance-with-credential:
  scalar: configure maintenance during 'reconfigure'
  maintenance: add custom config to background jobs
  credential: add new interactive config option
This commit is contained in:
Junio C Hamano
2024-09-30 16:16:16 -07:00
7 changed files with 114 additions and 12 deletions

View File

@@ -733,6 +733,9 @@ static int cmd_reconfigure(int argc, const char **argv)
the_repository = old_repo;
if (toggle_maintenance(1) >= 0)
succeeded = 1;
loop_end:
if (!succeeded) {
res = -1;