File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -313,11 +313,12 @@ sed '/^$/d' ${WORKSPACE}/work/patchset.files > ${WORKSPACE}/work/patchset.files.
313
313
mv ${WORKSPACE} /work/patchset.files.tmp ${WORKSPACE} /work/patchset.files
314
314
315
315
# 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.
316
317
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
318
319
echo " Error: The patchset contains changes to upgrade.txt or UPGRADING.md files." | tee -a ${errorfile}
319
320
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 ' ) "
321
322
if [[ -n " ${dirtyupgrades} " ]]; then
322
323
echo " Error: File(s) affected:" | tee -a ${errorfile}
323
324
echo " ${dirtyupgrades} " | sed ' s/^/Error: /' | tee -a ${errorfile}
You can’t perform that action at this time.
0 commit comments