summaryrefslogtreecommitdiffstats
path: root/util/scripts
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-08-26 12:10:10 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-08-31 06:33:56 +0000
commitcb5961d1481e819610902022e93ee8faf0dc1e7c (patch)
tree95f75ca24739b0ba4d3c9107e66aa62a846f0a5e /util/scripts
parent0c9bdc456e576856f316119ad819e3cd92e6582d (diff)
downloadcoreboot-cb5961d1481e819610902022e93ee8faf0dc1e7c.tar.gz
coreboot-cb5961d1481e819610902022e93ee8faf0dc1e7c.tar.bz2
coreboot-cb5961d1481e819610902022e93ee8faf0dc1e7c.zip
cross-repo-cherrypick: Do not prepend "Original-" to "Cq-Depend:"
Marking dependencies has undergone some change in Chrome OS tree. The script to cherry-pick the changes to ChromeOS tree prepends "Original-" to the concerned meta data i.e. Cq-Depend becomes Original-Cq-Depend. This causes dependencies to not take effect when changes are submitted to the continuous integration. Do not prepend "Original-" to the dependency meta data. BUG=None TEST=Ensure that the Cq-Depend line is added without any prefix. Change-Id: I0503234954f872ee56708e19e89cae9d9fa30df7 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44843 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'util/scripts')
-rwxr-xr-xutil/scripts/cross-repo-cherrypick5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/scripts/cross-repo-cherrypick b/util/scripts/cross-repo-cherrypick
index 3fbc46faed56..35e4b335025c 100755
--- a/util/scripts/cross-repo-cherrypick
+++ b/util/scripts/cross-repo-cherrypick
@@ -54,12 +54,15 @@ GUID="$(git config user.name) <$(git config user.email)>"
'"${SPLICE_CMD}"'
}
end=1
- }; /^(BUG|BRANCH|TEST|CQ-DEPEND)=/ {
+ }; /^(BUG|BRANCH|TEST)=/ {
if (end==0) {
print "Original-Commit-Id: '"${CID}"'\nSigned-off-by: '"${GUID}"'";
print "";
}
end=1
+ }; /^Cq-Depend:/ {
+ print $0;
+ next
}; {
if (end==0)
print "Original-" $0;