From 85d811fec12aadb27c5a65d545e3d676165659b2 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Sat, 5 Jan 2019 23:13:24 +0100 Subject: [PATCH] patch-tool-mxe: add ignored files to initial commit "git add -f" allows adding otherwise ignored files. Archives might include .gitignore files specifying files to be ignored by git, i.e., not added to the project's repository. Since the patch tool uses git to manage patches that may affect these "ignored" files, they should not be excluded from the working repository created by the patch tool. --- mxe.patch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxe.patch.mk b/mxe.patch.mk index e5219575..c129ff66 100644 --- a/mxe.patch.mk +++ b/mxe.patch.mk @@ -25,7 +25,7 @@ define INIT_GIT find '$(call GIT_DIR,$(1))' -name .git -prune -exec sh -c 'mv "$$0" "$$0"_' {} \; # initialize git $(call GIT_CMD,$(1)) init - $(call GIT_CMD,$(1)) add -A + $(call GIT_CMD,$(1)) add -A -f $(call GIT_CMD,$(1)) commit -m "init" $(call GIT_CMD,$(1)) tag dist endef