]> git.proxmox.com Git - mirror_zfs.git/blobdiff - scripts/commitcheck.sh
Direct IO support
[mirror_zfs.git] / scripts / commitcheck.sh
index 190943916340874c15ae5719791840d8fd7525f5..4d37b3a3c721eb80ac520e2fe4fa6d93000ed279 100755 (executable)
@@ -16,10 +16,11 @@ function test_url()
 }
 
 # test commit body for length
+# lines containing urls are exempt for the length limit.
 function test_commit_bodylength()
 {
     length="72"
-    body=$(git log -n 1 --pretty=%b "$REF" | grep -E -m 1 ".{$((length + 1))}")
+    body=$(git log -n 1 --pretty=%b "$REF" | grep -Ev "http(s)*://" | grep -E -m 1 ".{$((length + 1))}")
     if [ -n "$body" ]; then
         echo "error: commit message body contains line over ${length} characters"
         return 1