Skip to content

Commit b4b6868

Browse files
macdiceCommitfest Bot
authored andcommitted
Fix "push" webhook handler.
Off by one...
1 parent 85c1354 commit b4b6868

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cfbot_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,10 @@ def handle_push_webhook(conn, event):
807807
# mirror of the actual self-hosted postgresql.org repo).
808808
return
809809
ref = event["ref"]
810-
if not ref.startswith("refs/head/"):
810+
if not ref.startswith("refs/heads/"):
811811
# We don't mirror refs/tag/... should we?
812812
return
813-
branch = ref[10:]
813+
branch = ref[11:]
814814
if not re.match(cfbot_config.GITHUB_MIRROR_BRANCH_PATTERN, branch):
815815
# Only mirror branches that match our configured pattern (though
816816
# we don't actually expect postgres/postgres to have any non-matching

0 commit comments

Comments
 (0)