housekeeping: Allow context cancellation of git-pack-refs(1)
requested to merge 5316-check-metrics-and-decide-if-need-to-context-cancel-the-running-git-process-in into master
We can add inhibitors from running git-pack-refs(1) via the
addPackRefsInhibitor()
function. But if there is a ongoing
git-pack-refs(1), we are blocked until it finishes.
We instead use a context and propagate cancellation via the context. This allows the inhibitors to take priority and not be blocked over git-pack-refs(1).
Closes #5316 (closed)