wecodemore / grunt-githooks

A Grunt plugin to help bind Grunt tasks to Git hooks
https://npmjs.org/package/grunt-githooks
MIT License
317 stars 24 forks source link

It creates hook at local folder even if .git is elsewhere #29

Closed amatiasq closed 10 years ago

amatiasq commented 10 years ago

I have a project with this structure

project/
  .git/
  server/
  frontend/
    node_modules/
    Gruntfile.js

And I have grunt installed on the frontend folder. When I run grunt githook it create frontend/.git/hooks/... I think it should look for a already existing .git folder on parent directories.

I can't run grunt githooks directly at project/ because grunt is not there.

romaricpascal commented 10 years ago

You should be able to specify the output folder using the dest option ( to ../.git/hooks in your situation, I think).

Let me know how this goes :)

amatiasq commented 10 years ago

Worked! Thanks :+1: