From 81e99fad98dd03f94637bf281cd511c9386c72cc Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Thu, 6 Oct 2016 11:44:15 -0700 Subject: [PATCH] hack: update cherry-pick script to show subject when patch is split Signed-off-by: Jess Frazelle --- hack/cherry_pick_pull.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/cherry_pick_pull.sh b/hack/cherry_pick_pull.sh index 9c809fdab32..f320185f6be 100755 --- a/hack/cherry_pick_pull.sh +++ b/hack/cherry_pick_pull.sh @@ -169,7 +169,7 @@ for pull in "${PULLS[@]}"; do fi } # set the subject - subject=$(grep "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH\] //g') + subject=$(grep -m 1 "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH//g' | sed 's/.*] //') SUBJECTS+=("#${pull}: ${subject}") done gitamcleanup=false