We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b3156 commit e92e07fCopy full SHA for e92e07f
commitizen/git.py
@@ -155,9 +155,8 @@ def find_git_project_root() -> Optional[Path]:
155
156
def is_staging_clean() -> bool:
157
"""Check if staing is clean."""
158
- c = cmd.run("git diff --no-ext-diff --name-only")
159
- c_cached = cmd.run("git diff --no-ext-diff --cached --name-only")
160
- return not (bool(c.out) or bool(c_cached.out))
+ c = cmd.run("git diff --no-ext-diff --cached --name-only")
+ return not bool(c.out)
161
162
163
def is_git_project() -> bool:
0 commit comments