hack/cherry_pick_pull.sh: cleanup patch files

Signed-off-by: Jess Frazelle <acidburn@google.com>
pull/6/head
Jess Frazelle 2016-12-14 13:24:13 -08:00
parent 407d8b7c19
commit 50343c20c9
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
1 changed files with 4 additions and 0 deletions

View File

@ -173,9 +173,13 @@ for pull in "${PULLS[@]}"; do
exit 1
fi
}
# set the subject
subject=$(grep -m 1 "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH//g' | sed 's/.*] //')
SUBJECTS+=("#${pull}: ${subject}")
# remove the patch file from /tmp
rm -f "/tmp/${pull}.patch"
done
gitamcleanup=false