summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/changelog/1972.bugfix.rst3
-rw-r--r--tox.ini2
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/changelog/1972.bugfix.rst b/docs/changelog/1972.bugfix.rst
new file mode 100644
index 00000000..1b38ad3b
--- /dev/null
+++ b/docs/changelog/1972.bugfix.rst
@@ -0,0 +1,3 @@
+Enable setting a different ``upstream`` repository for the coverage diff report.
+This has been hardcoded to ``upstream/rewrite`` until now.
+by :user:`jugmac00`.
diff --git a/tox.ini b/tox.ini
index 55b84264..74d0ff54 100644
--- a/tox.ini
+++ b/tox.ini
@@ -79,7 +79,7 @@ commands =
coverage report -m
coverage xml -o {toxworkdir}{/}coverage.xml
coverage html -d {toxworkdir}{/}htmlcov
- diff-cover --compare-branch upstream/rewrite {toxworkdir}{/}coverage.xml
+ diff-cover --compare-branch {env:DIFF_AGAINST:upstream/rewrite} {toxworkdir}{/}coverage.xml
depends =
py39
py38