Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
---

Does this patch help?

Michael

 scripts/git-ptx-patches |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
index 8637055..04b1405 100755
--- a/scripts/git-ptx-patches
+++ b/scripts/git-ptx-patches
@@ -59,8 +59,12 @@ case "$remove_old" in
                ;;
 esac
 
+if git format-patch -h | grep -q signature; then
+       GIT_EXTRA_ARGS="--no-signature"
+fi
+
 echo "$PTX_PATCHES_HEADER" > .ptxdist/series
-git format-patch -N --no-signature -o .ptxdist/patches/ base | sed -e 
's,^.ptxdist/patches/,,' >> .ptxdist/series
+git format-patch -N $GIT_EXTRA_ARGS -o .ptxdist/patches/ base | sed -e 
's,^.ptxdist/patches/,,' >> .ptxdist/series
 cat .ptxdist/series | _md5sum >> .ptxdist/series
 
 # The first line of the patch is 'From <some-git-hash> ...'
-- 
1.7.5.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to