Skip to content

Commit 29bd2a7

Browse files
committed
Remove support for 'PW_FORMAT' environment variable
This highlights an issue with 'sphinx-click' [1]. Said issue is resolved with sphinx-click 1.4.1 but that's not available on Fedora, so we simply ignore this for now. [1] click-contrib/sphinx-click#26 Signed-off-by: Stephen Finucane <[email protected]>
1 parent 52e39cb commit 29bd2a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: git_pw/utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ def format_options(original_function=None, headers=None):
171171
"""Shared output format options."""
172172

173173
def _format_options(f):
174-
f = click.option('--format', '-f', 'fmt', envvar='PW_FORMAT',
175-
default=None,
174+
f = click.option('--format', '-f', 'fmt', default=None,
176175
type=click.Choice(['simple', 'table', 'csv']),
177176
help="Output format. Defaults to the value of "
178177
"'git config pw.server' else 'table'.")(f)

0 commit comments

Comments
 (0)