mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add review suggestion
Co-Authored-By: DanielChabrowski <dantezstudio@gmail.com>
This commit is contained in:
parent
888787fb2d
commit
a18b683d12
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def _repo_ref(tmpdir, repo, ref):
|
|||
env = dict(os.environ, GIT_INDEX_FILE=idx, GIT_OBJECT_DIRECTORY=objs)
|
||||
|
||||
staged_files = git.get_staged_files(cwd=repo)
|
||||
if (len(staged_files) > 0):
|
||||
if staged_files:
|
||||
cmd_output('git', 'add', *staged_files, cwd=repo, env=env)
|
||||
|
||||
cmd_output('git', 'add', '-u', cwd=repo, env=env)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue