Joined January 2013
·

Tom Loudon

Developer
·
London
·
·
·

Thanks for letting me know. I think the author has updated their account name. I've changed it now.

Hi Andreas. I implemented a similar method using grunt-contrib-copy however I found that the copied file was not an executable and as a result was not run by Git. Did you find a similar issue?

Instead I used grunt-shell and copied the pre-commit executable in to .git/hooks like so.

shell: {
  hooks: {
    command: 'cp git-hooks/pre-commit .git/hooks/'
  }
}
Achievements
687 Karma
122,863 Total ProTip Views