mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 23:30:44 +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:
|
if verbose_mode:
|
||||||
long_print_iter('Indexed changes', indexed)
|
long_print_iter('Indexed changes', indexed)
|
||||||
long_print_iter('Unindexed changes', unindexed)
|
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)
|
run_safety_checks(indexed, unindexed)
|
||||||
|
|
||||||
undo_formatting = False
|
undo_formatting = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user