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
6
Makefile
6
Makefile
|
@ -40,9 +40,11 @@ submodule.stamp:
|
||||||
patch.stamp: submodule.stamp patches/series patches/000_plant-a-forest.patch $(wildcard patches/*.patch)
|
patch.stamp: submodule.stamp patches/series patches/000_plant-a-forest.patch $(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