Commit Graph

8 Commits

Author SHA1 Message Date
Naglis Jonaitis b3c993e21b Do not use bare `except:`
According to PEP8[1]:

> A bare `except:` clause will catch SystemExit and KeyboardInterrupt
> exceptions, making it harder to interrupt a program with Control-C,
> and can disguise other problems.

Use more specific exceptions or `contextlib.suppress()` in case of
`try: ... except: pass`.

[1]: https://peps.python.org/pep-0008/#programming-recommendations
2024-02-21 09:25:03 +01:00
Drew DeVault 281891b07d scripts/symlink-update-hook.py: fix conditionals
Otherwise this would fail to update all of the symlinks if any of them
were already correct.
2020-02-17 11:38:50 -05:00
Drew DeVault 17c9530ea1 gitsrht-update-hook: add pre-receive hook
This adds a new pre-receive hook, which is capable of receiving git push
options. I have also added support for -o debug, which prints your push
UUID for troubleshooting later.
2020-02-17 09:18:53 -05:00
Drew DeVault 84afd9d7b0 Rewrite gitsrht-update-hook in Go 2019-11-19 18:36:00 -05:00
Drew DeVault 3b3a7d8017 Lay groundwork for push performance improvements 2019-08-16 13:10:20 +09:00
Drew DeVault 4eeef3ae89 Update for sr.ht unified config 2018-09-03 09:56:18 -04:00
Drew DeVault db41e6d1f6 Add basic builds.sr.ht integration 2017-04-16 11:52:15 -04:00
Drew DeVault ae9a7a649f Move update hook into /usr and add symlinks 2017-04-14 15:37:15 -04:00