Compare commits

..

2 Commits

Author SHA1 Message Date
didericis-codex ca8c5efc22 docs(prd): add gitleaks allow supervision
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 17s
2026-06-10 07:26:10 +00:00
didericis-codex a40d31f789 Supervise gitleaks inline allow exceptions
lint / lint (push) Successful in 1m56s
2026-06-10 07:21:57 +00:00
2 changed files with 0 additions and 9 deletions
-2
View File
@@ -461,8 +461,6 @@ while IFS=' ' read -r old new ref; do
[ -z "$ref" ] && continue
if [ "$new" = "$zero" ]; then
refspec=":$ref"
elif [ "$old" != "$zero" ] && ! git merge-base --is-ancestor "$old" "$new" 2>/dev/null; then
refspec="+$new:$ref"
else
refspec="$new:$ref"
fi
-7
View File
@@ -181,13 +181,6 @@ class TestHookRender(unittest.TestCase):
self.assertIn("BatchMode=yes", hook)
self.assertIn("ConnectTimeout=", hook)
def test_force_push_uses_plus_refspec(self):
# A non-fast-forward push (old != zero, new not a descendant of old)
# must forward +$new:$ref so the upstream accepts the force push.
hook = git_gate_render_hook()
self.assertIn('git merge-base --is-ancestor "$old" "$new"', hook)
self.assertIn('refspec="+$new:$ref"', hook)
def test_forward_preserves_push_options(self):
# Git exposes push options to pre-receive hooks as
# GIT_PUSH_OPTION_COUNT + indexed GIT_PUSH_OPTION_N variables.