Fix local diff should include staged commits (otherwise apply the git diff will fail, issue #457)

This commit is contained in:
allegroai 2021-09-30 22:25:47 +03:00
parent b38a74c91e
commit bd51a36cbb

View File

@ -232,10 +232,10 @@ class GitDetector(Detector):
commit=["git", "rev-parse", "HEAD"],
root=["git", "rev-parse", "--show-toplevel"],
status=["git", "status", "-s"],
diff=["git", "diff", "--submodule=diff"],
diff=["git", "diff", "--submodule=diff", "HEAD"],
modified=["git", "ls-files", "-m"],
branch_fallback=["git", "rev-parse", "--abbrev-ref", "HEAD"],
diff_fallback=["git", "diff"],
diff_fallback=["git", "diff", "HEAD"],
diff_remote=["git", "diff", "--submodule=diff", ],
commit_remote=["git", "rev-parse", ],
diff_fallback_remote=["git", "diff", ],