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
54a30ff6d5
commit
d212cf58c9
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -40,9 +40,11 @@ submodule.stamp:
|
|||
patch.stamp: submodule.stamp patches/series patches/000_plant-a-forest.patch $(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 $@
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue