Skip to content

Commit d11acd7

Browse files
committed
make clean now removes modified files in submodules
1 parent 8836c17 commit d11acd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ _pack-%: build-%-$(BUILD_TYPE)
8686
fi
8787

8888
clean-git-packages:
89-
git submodule foreach '[[ ! "$$sm_path" == src/submodule_packages/* ]] || git clean -xffd'
89+
git submodule foreach '[[ "$$sm_path" == src/submodule_packages/* ]] && git clean -xffd && git restore .'
9090

9191
clean: clean-git-packages
9292
rm -rf build

0 commit comments

Comments
 (0)