make: always git reset on patch renewal
If a patch changed inbetween application and reversal changed/remove parts might persist otherwise
This commit is contained in:
parent
d54d8e69d8
commit
92b9fbf85c
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -38,9 +38,11 @@ patch: patch.stamp
|
||||||
patch.stamp: submodule.stamp patches/series $(wildcard patches/*.patch)
|
patch.stamp: submodule.stamp patches/series $(wildcard patches/*.patch)
|
||||||
@echo "Applying patches"
|
@echo "Applying patches"
|
||||||
@# `pop -a` return 2 if currently no patches applied, thus ignore exit code
|
@# `pop -a` return 2 if currently no patches applied, thus ignore exit code
|
||||||
@cd $(SUBMODULE_NAME) && \
|
@cd $(SUBMODULE_NAME) && { \
|
||||||
$(QUILT) pop -qfa; \
|
$(QUILT) pop -qfa; \
|
||||||
$(QUILT) push -a
|
git reset --hard && \
|
||||||
|
$(QUILT) push -a; \
|
||||||
|
}
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue