From 41d6205e50ac204281b4030edc060cc9d0e4cbdf Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 2 Aug 2019 17:48:01 +0200 Subject: [PATCH] scripts/quilt-mail: check to see if 'git quiltimport' succeeds or not was causing trees to be created that should not have been. Signed-off-by: Greg Kroah-Hartman --- scripts/quilt-mail | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/quilt-mail b/scripts/quilt-mail index 9ba41bd5555..981c9dc917b 100755 --- a/scripts/quilt-mail +++ b/scripts/quilt-mail @@ -50,6 +50,10 @@ git clone -s . ${TMP_TREE} cd ${TMP_TREE} git checkout -b temp_branch git quiltimport --patches=${STABLE_QUEUE}/queue-${ROOT_VERSION} +if [ $? -ne 0 ]; then + echo "git quilt import failed!!!" + exit 1 +fi # Apply the Makefile patch and commit it patch -p1 < ${TMP_DIR}/Makefile.patch -- 2.47.2