From 36c4dc77fb6afa1480478196501c37033c7293df Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 24 Apr 2024 21:27:41 +0530 Subject: [PATCH] git clean: exclude build logs --- scripts/configure-kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/configure-kernel.sh b/scripts/configure-kernel.sh index bf8878a..ba119f3 100755 --- a/scripts/configure-kernel.sh +++ b/scripts/configure-kernel.sh @@ -201,7 +201,7 @@ function configure_kernel() { if [[ "${CLEAN_BUILD}" == '1' ]]; then rm -vf .config* if [[ "$(git rev-parse --is-inside-work-tree)" == 'true' ]]; then - git clean -x -d -f + git clean --exclude='build-*.log' -x -d -f fi $SUDO_ALIAS make distclean fi