From: Alexandru Avadanii Date: Sun, 17 Apr 2016 13:00:39 +0000 (+0200) Subject: Makefile: submodules-clean: Add 'git am --abort'. X-Git-Tag: colorado.1.rc1~534 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F12381%2F1;p=armband.git Makefile: submodules-clean: Add 'git am --abort'. Sometimes patches fail to apply cleanly on patches-import, usually due to upstream changes. submodules-clean removes tags and resets HEAD, so it should also try aborting the git am command. Change-Id: I7e839383cbcde60deaf9266f24512f985b0b642e --- diff --git a/Makefile b/Makefile index 7723c720..9490f5a9 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,8 @@ submodules-init: # Cleans any changes made to submodules submodules-clean: @git submodule -q foreach \ - 'git checkout -q armband-workbench-root; \ + 'git am --abort; \ + git checkout -q armband-workbench-root; \ git branch -q -D armband-workbench; \ git tag -d armband-workbench-root; \ git reset -q --hard HEAD; git clean -xdff'