Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-10-18 14:04:27 +0200
committerTakashi Iwai <tiwai@suse.de>2018-10-18 14:07:45 +0200
commit3d0cc054c53a3844b7d1ac625730f455afef7ccf (patch)
tree39b8c51315108b171845809a419021056471133a
parent57b996f67d6dd4f906508a7c2304bf3d68463d6f (diff)
scripts/series2git: Strip [PATCH] prefix in the subject line
This makes the commit a bit more similar to the original change.
-rwxr-xr-xscripts/series2git2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/series2git b/scripts/series2git
index defcb51574..e62ccc7e02 100755
--- a/scripts/series2git
+++ b/scripts/series2git
@@ -200,7 +200,7 @@ apply_patch()
GIT_AUTHOR_EMAIL=
;;
esac
- local subject=$(ex_hdr Subject "$patch")
+ local subject=$(ex_hdr Subject "$patch" | sed -es'/\[[^]]*\] //')
GIT_AUTHOR_DATE=$(ex_hdr Date "$patch")
GIT_AUTHOR_DATE=$(ex_hdr Date "$patch" \
| perl -p -e 's/(\d\d:\d\d:\d\d) (\d{4})/$2 $1/;s/:$//')