Browse files

scripts/combo-layer: fix overzealous regex in default hook script

combo-layer's hook scripts are intended to modify patches as they pass
through; the default one adds a prefix with the component name and
a line with the component repo revision before the Signed-off-by;
however the script was also unintentionally modifying the contents of
patches *within* the patches passing through it, which resulted in
unexpected failures when the combo-layer script attempted to use
"git am" to apply them.

Signed-off-by: Paul Eggleton <>
Signed-off-by: Koen Kooi <>
  • Loading branch information...
1 parent 9995064 commit 6b4e8b06f888194b4a8817e36b3fd5af24505a4b Paul Eggleton committed with Aug 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/
@@ -9,5 +9,5 @@ patchfile=$1
-sed -i -e "s#Subject: \[PATCH\] \(.*\)#Subject: \[PATCH\] $reponame: \1#" $patchfile
-sed -i -e "0,/Signed-off-by:/s#\(Signed-off-by:.*\)#\($reponame rev: $rev\)\n\n\1#" $patchfile
+sed -i -e "s#^Subject: \[PATCH\] \(.*\)#Subject: \[PATCH\] $reponame: \1#" $patchfile
+sed -i -e "0,/^Signed-off-by:/s#\(Signed-off-by:.*\)#\($reponame rev: $rev\)\n\n\1#" $patchfile

0 comments on commit 6b4e8b0

Please sign in to comment.