Skip to content

Commit 9d83306

Browse files
committed
Accommodate for changes in vendored UPGRADING.md files
Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 6fb405f commit 9d83306

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
@@ -318,11 +318,12 @@ sed '/^$/d' ${WORKSPACE}/work/patchset.files > ${WORKSPACE}/work/patchset.files.
318318
mv ${WORKSPACE}/work/patchset.files.tmp ${WORKSPACE}/work/patchset.files
319319

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

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

0 commit comments

Comments
 (0)