diff --git a/Makefile b/Makefile index 42d4df0..b904f75 100644 --- a/Makefile +++ b/Makefile @@ -38,9 +38,11 @@ patch: patch.stamp patch.stamp: submodule.stamp patches/series $(wildcard patches/*.patch) @echo "Applying patches" @# `pop -a` return 2 if currently no patches applied, thus ignore exit code - @cd $(SUBMODULE_NAME) && \ - $(QUILT) pop -qfa; \ - $(QUILT) push -a + @cd $(SUBMODULE_NAME) && { \ + $(QUILT) pop -qfa; \ + git reset --hard && \ + $(QUILT) push -a; \ + } @touch $@