]> git.ozlabs.org Git - next-scripts/commitdiff
check_fixes: make sure the double quotes appear in the helpful message
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Apr 2019 05:54:23 +0000 (15:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Apr 2019 05:54:23 +0000 (15:54 +1000)
check_fixes

index 63abf880994b84c198354b75912789d45d552f24..d75e1efc7f8b49e94577ac47f0170a8ca5f825fd 100755 (executable)
@@ -128,7 +128,7 @@ has these problem(s):
                target_subject=$(strip_spaces "$target_subject")
 
                if [ "$subject" != "${target_subject:0:${#subject}}" ]; then
-                       msg="${msg:+${msg}${nl}}  - Subject does not match target commit subject${nl}    Just use${nl}${tab}git log -1 --format='Fixes: %h ("%s")'"
+                       msg="${msg:+${msg}${nl}}  - Subject does not match target commit subject${nl}    Just use${nl}${tab}git log -1 --format='Fixes: %h (\"%s\")'"
                fi
                lsha=$(cd "$Linus_tree" && git rev-parse -q --verify "$sha")
                if [ -z "$lsha" ]; then