Commit f9bbd0d
committed
fix(hooks): check only new commits in pre-push, not all since release
The pre-push hook was checking all commits since the last release tag
(v0.1.2), which included 4914 commits. This blocked pushes even when
problematic commits were already on remote.
Changed existing branch logic from:
range="$latest_release..$local_sha" # All commits since v0.1.2
To:
range="$remote_sha..$local_sha" # Only new commits being pushed
This prevents blocking pushes for old commits that already made it to
remote, while still catching new commits with AI attribution.1 parent 8b6df11 commit f9bbd0d
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 39 | + | |
| 40 | + | |
49 | 41 | | |
50 | 42 | | |
51 | 43 | | |
| |||
0 commit comments