1
0
Fork 0

fix git dir detection in worktrees

This commit is contained in:
Pratham Patel 2024-04-17 06:40:17 +05:30
parent dc1578a4fb
commit a6418ac316
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ function modify_kernel_config() {
function configure_kernel() {
if [[ "${CLEAN_BUILD}" == '1' ]]; then
rm -vf .config*
[[ -d .git ]] && git clean -x -d -f
if [[ "$(git rev-parse --is-inside-work-tree)" == 'true' ]]; then
git clean -x -d -f
fi
$SUDO_ALIAS make distclean
fi