Skip to content

Commit 5b45020

Browse files
committed
Accommodate for changes in vendored UPGRADING.md files
Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent ef21453 commit 5b45020

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

remote_branch_checker/remote_branch_checker.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,12 @@ sed '/^$/d' ${WORKSPACE}/work/patchset.files > ${WORKSPACE}/work/patchset.files.
313313
mv ${WORKSPACE}/work/patchset.files.tmp ${WORKSPACE}/work/patchset.files
314314

315315
# For 4.5 and up, verify that the we aren't modifying any upgrade.txt or UPGRADING.md files.
316+
# lib/guzzlehttp/guzzle/UPGRADING.md is a false positive. It's a vendored file.
316317
if [[ ${versionbranch} -ge 405 ]]; then
317-
if grep -q 'UPGRADING.md\|upgrade.txt' ${WORKSPACE}/work/patchset.files; then
318+
if sed '/lib\/guzzlehttp\/guzzle\/UPGRADING.md/d' ${WORKSPACE}/work/patchset.files | grep -q 'UPGRADING.md\|upgrade.txt'; then
318319
echo "Error: The patchset contains changes to upgrade.txt or UPGRADING.md files." | tee -a ${errorfile}
319320

320-
dirtyupgrades="$( grep 'UPGRADING.md\|upgrade.txt' ${WORKSPACE}/work/patchset.files )"
321+
dirtyupgrades="$( sed '/lib\/guzzlehttp\/guzzle\/UPGRADING.md/d' ${WORKSPACE}/work/patchset.files | grep 'UPGRADING.md\|upgrade.txt' )"
321322
if [[ -n "${dirtyupgrades}" ]]; then
322323
echo "Error: File(s) affected:" | tee -a ${errorfile}
323324
echo "${dirtyupgrades}" | sed 's/^/Error: /' | tee -a ${errorfile}

0 commit comments

Comments
 (0)