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

Custom pre-receive hook scripts fail to execute correctly

XMLWordPrintable

      Issue Summary

      A change in logic for pre-receive hooks happened after Bitbucket 7.15.0 where the pre-receive hook does not have access to the new object being pushed. Or at least not in the same way.

      Steps to Reproduce

      1. Create a repository
      2. Add a custom pre-receive hook script to the repository's pre-receive directory
      3. Perform a push to that repository

      Expected Results

      Successfully push the changes to the repository

      Actual Results

      Pushed changes are rejected due to bad object detected

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            ckochovski@atlassian.com Christopher Kochovski
            ckochovski@atlassian.com Christopher Kochovski
            Votes:
            5 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: