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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Answered
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Pull Requests
    • Labels:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: