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:
Oneric 2024-10-08 04:00:07 +02:00
parent 54a30ff6d5
commit d212cf58c9

View file

@ -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) && \
@cd $(SUBMODULE_NAME) && { \
$(QUILT) pop -qfa; \
$(QUILT) push -a
git reset --hard && \
$(QUILT) push -a; \
}
@touch $@