]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
scripts/quilt-mail: check to see if 'git quiltimport' succeeds or not
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2019 15:48:01 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2019 15:48:01 +0000 (17:48 +0200)
was causing trees to be created that should not have been.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/quilt-mail

index 9ba41bd555505c7d57715ee226d81a17fc2bb9ab..981c9dc917b3f9f0573e89a941ae103de6f2cc56 100755 (executable)
@@ -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