Joined January 2013
·
C6b33788d5d2de4533488f8707026748

Tom Loudon

Developer
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
59,918 Total ProTip Views