Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1243171?usp=email )
Change subject: tests: update copyright_fixer for Jenkins CI
......................................................................
tests: update copyright_fixer for Jenkins CI
Change-Id: Ie61a8e3fbf27107f2a7d6623641ae472541c1fe3
---
M tests/hooks/copyright_fixer.py
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/tests/hooks/copyright_fixer.py b/tests/hooks/copyright_fixer.py
index 3fb3652..e39fc40 100755
--- a/tests/hooks/copyright_fixer.py
+++ b/tests/hooks/copyright_fixer.py
@@ -37,6 +37,11 @@
subprocess.check_output(diff_cmd + ['--staged'], encoding='utf-8')
)
captures.append(
+ subprocess.check_output(
+ diff_cmd + ['HEAD~1', 'HEAD'], encoding='utf-8'
+ )
+ )
+ captures.append(
subprocess.check_output(show_cmd + ['HEAD'], encoding='utf-8')
)
return {Path(path) for capture in captures for path in capture.splitlines()
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1243171?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie61a8e3fbf27107f2a7d6623641ae472541c1fe3
Gerrit-Change-Number: 1243171
Gerrit-PatchSet: 6
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]