Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2861

Pre-receive hooks don't run when merging a pull-request

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Medium
    • None
    • 1.3.1
    • Pull Requests
    • None

    Description

      In an attempt to limit write access to master branch, I added a pre-receive hook into my server side repo. This works fine for pushes being done from Git command line.

      However, when someone opens a PR for master branch and merges them, the pre-receive hook is not run, thus granting write-access to all.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2d7653fc3ead Harshad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: