alexcouper / captainhook

Git hook scripts
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

#77 Make sure .git/hooks exists before installing #78

Closed browniebroke closed 9 years ago

browniebroke commented 9 years ago

Way of fixing the error I had in #77

alexcouper commented 9 years ago

Thanks - another approach would be to use os.makedirs here https://github.com/alexcouper/captainhook/blob/master/scripts/captainhook#L65

I think I prefer that approach.

browniebroke commented 9 years ago

That was my first approach, but the install_pre_commit_hook fails too (see logs in the issue) On 21 May 2015 18:53, "Alex Couper" notifications@github.com wrote:

Thanks - another approach would be to use os.makedirs here https://github.com/alexcouper/captainhook/blob/master/scripts/captainhook#L65

I think I prefer that approach.

— Reply to this email directly or view it on GitHub https://github.com/alexcouper/captainhook/pull/78#issuecomment-104370910 .

alexcouper commented 9 years ago

Ah yes - fair point.

I'll give this a spin then

alexcouper commented 9 years ago

Works like a charm. Merging.

Thanks