Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2434

Prevent system repositories from receiving the default post-commit hook

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It is possible to define a folder that contains a post-commit hook that will be added to repositories every time they are created.
      It can be done by using the property org.uberfire.nio.git.hooks.
      Refer to this doc for more information.

      However, this is also applicable to system repositories like system, dashbuilder, config and archetypes.
      So, if users define a post-commit hook like "git push origin master" and run BC for the first time, they will see the following error on every commit in system repositories because they don't have an origin to refer to:

      fatal: 'origin' does not appear to be a git repository
      fatal: Could not read from remote repository
      

      Thus, the purpose of this task is to filter out system repositories from this flow.
      As a result, the post-commit hook will be added only to the user's project repositories.

        Attachments

          Activity

            People

            Assignee:
            gcaponet Guilherme Caponetto
            Reporter:
            gcaponet Guilherme Caponetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: