make configure not clobber modified submodules at all

this fixes issue #522 (maybe?) by not cleaning/resetting submodules which are dirty. it does not block completion of configure.
This commit is contained in:
discomfitor 2014-01-02 17:23:06 -05:00
parent 2b487ed3e9
commit 12cee06388

5
configure vendored
View file

@ -456,9 +456,8 @@ then
need_ok "git failed"
msg "git: submodule clobber"
"${CFG_GIT}" submodule foreach --recursive git clean -dxf
need_ok "git failed"
"${CFG_GIT}" submodule foreach --recursive git checkout .
"${CFG_GIT}" submodule foreach --recursive \
'if [ -n "$(git status --porcelain)" ] ; then echo "Refusing to clobber $path" ; else git clean -dxf ; git checkout . ; fi'
need_ok "git failed"
cd ${CFG_BUILD_DIR}