From 8768362b2dd2a34349248c47ad2af10f15dc6719 Mon Sep 17 00:00:00 2001 From: Eugene Doudine Date: Wed, 22 Oct 2025 17:51:48 +0300 Subject: [PATCH] fix: disable detach of git maintenance after exit of main git process This is new git behaviour introduced with upgrade of git to 2.48.1 Signed-off-by: Eugene Doudine --- .dockerignore | 4 +++- Dockerfile | 1 + hack/gitconfig | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 hack/gitconfig diff --git a/.dockerignore b/.dockerignore index 12e17715871ca..01813401eefc7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -28,4 +28,6 @@ examples/ !hack/gpg-wrapper.sh !hack/git-verify-wrapper.sh !hack/tool-versions.sh -!hack/install.sh \ No newline at end of file +!hack/install.sh +!hack/gitconfig + diff --git a/Dockerfile b/Dockerfile index c63011a18fa28..64c18e5b74324 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,6 +62,7 @@ COPY hack/gpg-wrapper.sh \ hack/git-verify-wrapper.sh \ entrypoint.sh \ /usr/local/bin/ +COPY hack/gitconfig /etc/gitconfig COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm COPY --from=builder /usr/local/bin/kustomize /usr/local/bin/kustomize diff --git a/hack/gitconfig b/hack/gitconfig new file mode 100644 index 0000000000000..cfb52bc5ee68d --- /dev/null +++ b/hack/gitconfig @@ -0,0 +1,4 @@ +[maintenance] +autoDetach = false +[gc] +autoDetach = false