fix git dir detection in worktrees
This commit is contained in:
parent
dc1578a4fb
commit
a6418ac316
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue