Skip to content

Commit 302610c

Browse files
committed
Fix bug in contains_uncommitted_change()
1 parent dbab9e6 commit 302610c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/bump_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def contains_uncommitted_change(filepath: str):
5858
if cmpl_proc.returncode != 0:
5959
raise RuntimeError(f"Error getting status of {filepath}")
6060

61-
return cmpl_proc.stdout[:2] != " "
61+
return len(cmpl_proc.stdout) != 0
6262

6363

6464
@click.command()

0 commit comments

Comments
 (0)