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

Make ordering of pre-receive hooks configurable

    XMLWordPrintable

Details

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Our SVN Mirror add-on heavily relies on pre-receive hook modules. At the moment ordering of such hooks is non-deterministic:

      When writing hooks keep in mind that the ordering of the hooks is non-deterministic, and shouldn't be relied on. Passing state between hooks of the same type is fraught with danger and should not be attempted; each hook should be completely standalone.

      Unfortunately, that leads to unpredictable behavior for established Git-SVN mirrors. If SVN Mirror hook is getting triggered before other hooks, the result of those hooks is getting ignored, i.e. even if those hooks reject push operation, our hook still apply pushed commits as they already get synchronized with SVN server.

      Is there any chance to provide any ordering mechanism for pre-receive hook modules?

      Attachments

        Activity

          People

            ssaasen Stefan Saasen (Inactive)
            9134a18b55f0 Semyon Vadishev
            Votes:
            13 Vote for this issue
            Watchers:
            19 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: