From: Greg Kroah-Hartman Date: Fri, 2 Aug 2019 15:48:01 +0000 (+0200) Subject: scripts/quilt-mail: check to see if 'git quiltimport' succeeds or not X-Git-Tag: v5.2.6~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41d6205e50ac204281b4030edc060cc9d0e4cbdf;p=thirdparty%2Fkernel%2Fstable-queue.git 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 --- 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