mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2026-10-04 23:09:51 +03:00
TMP / pre-commit refuses to run if no files are staged
This commit is contained in:
1 parent
9d5ce3dca2
commit
7e39188f80
1 file changed
+4
@@ -218,6 +218,10 @@ def pre_commit():
|
||||
if verbose_mode:
|
||||
long_print_iter('Indexed changes', indexed)
|
||||
long_print_iter('Unindexed changes', unindexed)
|
||||
|
||||
if len(indexed) == 0:
|
||||
fail('No indexed changes. You probably forgot to run `git add .`')
|
||||
|
||||
run_safety_checks(indexed, unindexed)
|
||||
|
||||
undo_formatting = False
|
||||
|
||||
Reference in new issue
Block a user