Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #581
Closed
Open
Issue created Sep 07, 2020 by Miguel Castrillo@mcastrilOwner

Automatically set up gitHooks

It would be really helpful that Autosubmit automatically modifies the cloned project git config so the .githooks folder, in case it exists, is set as default githooks directory:

git config core.hooksPath .githooks.

Githooks are automated triggers, stored in the Git configuration, and because of that they cannot be control versioned. With this approach we would allow projects to include and version their own hooks, useful to do automated tasks after certain git operations.

As explained here: https://earth.bsc.es/gitlab/es/auto-ecearth3/-/issues/1378

Hopefully, it could also be used to move the NEMO clone script ( https://earth.bsc.es/gitlab/svn/nemo-mirror/snippets/55 ) to a githook-based thing.

Assignee
Assign to
Time tracking