Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3ad83a1a5
commit
167a3f8553
275 changed files with 30423 additions and 0 deletions
21
hooks/post-commit.py
Executable file
21
hooks/post-commit.py
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python
|
||||
from pathlib import Path
|
||||
|
||||
try:
|
||||
from commitizen.cz.utils import get_backup_file_path
|
||||
except ImportError as error:
|
||||
print(f"could not import commitizen:\n{error}")
|
||||
exit(1)
|
||||
|
||||
|
||||
def post_commit() -> None:
|
||||
backup_file = Path(get_backup_file_path())
|
||||
|
||||
# remove backup file if it exists
|
||||
if backup_file.is_file():
|
||||
backup_file.unlink()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
post_commit()
|
||||
exit(0)
|
Loading…
Add table
Add a link
Reference in a new issue