From 1f07deaff320f0aa01027cb7a6bff88c01906c00 Mon Sep 17 00:00:00 2001
From: "Austin S. Hemmelgarn" <austin@netdata.cloud>
Date: Fri, 26 Apr 2024 14:58:07 +0300
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20unnescesarily=20clean=20repo=20?=
 =?UTF-8?q?during=20static=20builds.=20(#17530)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Don’t clean repo during static builds.

We’re using a separate build directory in all cases, so there is no
longer any need to try to clean the repository before a static build.
This enables running static builds in linked git worktrees.
---
 packaging/makeself/build.sh | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/packaging/makeself/build.sh b/packaging/makeself/build.sh
index 389e04581b..dca635f0a3 100755
--- a/packaging/makeself/build.sh
+++ b/packaging/makeself/build.sh
@@ -33,9 +33,6 @@ chown -R root:root /usr/src/netdata
 
 cd /usr/src/netdata/packaging/makeself || exit 1
 
-git clean -dxf
-git submodule foreach --recursive git clean -dxf
-
 cat >&2 << EOF
 This program will create a self-extracting shell package containing
 a statically linked netdata, able to run on any 64bit Linux system,