Paul Tarjan
7b1d351330
line length
2025-12-26 15:17:13 -07:00
Paul Tarjan
ed0d44b665
redirect stderr to devnull
2025-12-26 15:15:34 -07:00
Paul Tarjan
a26fb3ba02
Revert "remove == 0"
...
This reverts commit 5a4235c6f0 .
2025-12-26 15:11:03 -07:00
Paul Tarjan
5a4235c6f0
remove == 0
2025-12-26 15:09:14 -07:00
Paul Tarjan
b285cccb19
use git cat-file -e instead of git rev-list in _rev_exists
...
fixes #3604
2025-12-26 14:57:28 -07:00
JulianMaurin
c78f248c60
Add fail-fast argument for run command
2025-09-06 14:14:23 -04:00
Anthony Sottile
7f15dc75ee
python3.9+
2023-10-28 14:20:37 -04:00
Marcelo Galigniana
f39154f69f
Add pre-rebase hook support
2023-03-11 15:17:42 -05:00
Anthony Sottile
e3e17a1617
make --hook-type and stages match
2023-03-11 14:26:14 -05:00
Matt Whitaker
702ebf402c
Expose prepare-commit-msg arguments as environment vars
2022-06-11 14:25:55 -04:00
Wade Carpenter
feb0d34213
pre-push: fix stdin line splitting when <local ref> has whitespace
...
From the `pre-push.sample` file:
> Information about the commits which are being pushed is supplied as
> lines to the standard input in the form:
>
> <local ref> <local sha1> <remote ref> <remote sha1>
When `<local ref>` is not simply a branch name, but a more general
ref (see git-rev-parse(1)), it could contain whitespace, and that
breaks the split() call that expected only 3 spaces in the line.
Changed to use `rsplit(maxsplit=3)` since only the <local ref> is
likely to have embedded whitespace.
Added a new test case for the same.
2022-04-14 14:27:46 -07:00
Anthony Sottile
04de6a2e57
drop python 3.6 support
...
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Jordan Speicher
4cd8b364dd
Add: post-rewrite hook support
2021-09-01 14:50:59 -05:00
Florent Clarret
584fd585ec
Expose local branch ref as an environment variable
2021-06-19 18:18:14 +02:00
Paweł Sacawa
6b73138c73
Add: post-merge hook support
2021-02-23 19:00:02 -08:00
surafelabebe
cb5ed6276d
Expose remote branch ref as an environment variable
2021-01-22 13:18:25 -08:00
ModischFabrications
26adf1d560
add support for post-commit
2020-04-27 10:55:22 -07:00
Anthony Sottile
80a59db094
validate argument length as part of hook-impl
2020-04-15 12:30:44 -07:00
Anthony Sottile
d35b00352f
Make more readable --from-ref / --to-ref aliases for --source / --origin
2020-02-23 11:07:57 -08:00
Andrew Hare
18fa004254
Add post-checkout
2020-02-23 10:22:18 -08:00
Anthony Sottile
95b8d71bd9
Move most of the actual hook script into pre-commit hook-impl
2020-01-21 16:41:22 -08:00