mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 12:30:46 +03:00
TMP / pre-commit refuses to run if no files are staged
This commit is contained in:
parent
9d5ce3dca2
commit
7e39188f80
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user