Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2017-11-02 22:26:03 -0400
committerBenjamin Poirier <bpoirier@suse.com>2017-11-03 07:17:48 -0400
commit869e9a97f5038eb456502f1b0ee7cd06f3b8e5c3 (patch)
treeafc8e648450b74ce8fcde3900c6cfc61a906c992
parenta0f314d378c0c519bef5665d6b6f6cae0c59ac78 (diff)
scripts/git-pre-commit: Check the content of the series.conf sorted section.
-rwxr-xr-x[-rw-r--r--]scripts/git-pre-commit7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/git-pre-commit b/scripts/git-pre-commit
index 774e12b440..b596be7184 100644..100755
--- a/scripts/git-pre-commit
+++ b/scripts/git-pre-commit
@@ -47,6 +47,13 @@ while read stat file garbage; do
"$dir/check-patchfmt" --stdin "$file" <"$tmp" || err=1
esac
done
+
+if [ -r "$dir"/../series.conf ] &&
+ ! "$dir"/series_sort.py --check "$dir"/../series.conf; then
+ echo "\"sorted patches\" section of series.conf failed check. Please read \"scripts/git_sort/README.md\", in particular the section \"Refreshing the order of patches in series.conf\"."
+ err=1
+fi
+
if test "$err" != 0; then
echo "Aborting."
exit "$err"