]> git.ipfire.org Git - thirdparty/git.git/commit
maintenance: add custom config to background jobs
authorDerrick Stolee <derrickstolee@github.com>
Fri, 20 Sep 2024 00:00:22 +0000 (00:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Sep 2024 21:44:31 +0000 (14:44 -0700)
commit4f5551957ddd6c679fc8499d4e1e110d43a49071
treebfd93b6ff6528f014015d82e325157c5462aede8
parent719399b57b3db8471852d86f96ab5db4a40d43ba
maintenance: add custom config to background jobs

At the moment, some background jobs are getting blocked on credentials
during the 'prefetch' task. This leads to other tasks, such as
incremental repacks, getting blocked. Further, if a user manages to fix
their credentials, then they still need to cancel the background process
before their background maintenance can continue working.

Update the background schedules for our four scheduler integrations to
include these config options via '-c' options:

 * 'credential.interactive=false' will stop Git and some credential
   helpers from prompting in the UI (assuming the '-c' parameters are
   carried through and respected by GCM).

 * 'core.askPass=true' will replace the text fallback for a username
   and password into the 'true' command, which will return a success in
   its exit code, but Git will treat the empty string returned as an
   invalid password and move on.

We can do some testing that the credentials are passed, at least in the
systemd case due to writing the service files.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
t/t7900-maintenance.sh