We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c1354 commit b4b6868Copy full SHA for b4b6868
1 file changed
cfbot_github.py
@@ -807,10 +807,10 @@ def handle_push_webhook(conn, event):
807
# mirror of the actual self-hosted postgresql.org repo).
808
return
809
ref = event["ref"]
810
- if not ref.startswith("refs/head/"):
+ if not ref.startswith("refs/heads/"):
811
# We don't mirror refs/tag/... should we?
812
813
- branch = ref[10:]
+ branch = ref[11:]
814
if not re.match(cfbot_config.GITHUB_MIRROR_BRANCH_PATTERN, branch):
815
# Only mirror branches that match our configured pattern (though
816
# we don't actually expect postgres/postgres to have any non-matching
0 commit comments