1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Remove unused args parameter from _git_commit

This commit is contained in:
Chris Hunt 2020-01-03 19:22:31 -05:00
parent 5665b94a5b
commit b65bd4c31a

View file

@ -720,7 +720,6 @@ def _git_commit(
env_or_script,
repo_dir,
message=None,
args=None,
allow_empty=False,
stage_modified=False,
):
@ -731,12 +730,11 @@ def _git_commit(
env_or_script: pytest's `script` or `env` argument.
repo_dir: a path to a Git repository.
message: an optional commit message.
args: optional additional options to pass to git-commit.
"""
if message is None:
message = 'test commit'
if args is None:
args = []
args = []
if allow_empty:
args.append("--allow-empty")