Skip to content

Commit

Permalink
Merge pull request #64 from kevinoid/relative-link
Browse files Browse the repository at this point in the history
Make pre-commit hook symlink relative
  • Loading branch information
3rd-Eden committed Feb 8, 2016
2 parents 2ca2fb9 + 1a04430 commit 2abd42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ catch (e) {}
// installation of this module to completely fail. We should just output the
// error instead destroying the whole npm install process.
//
try { fs.symlinkSync(hook, precommit, 'file'); }
try { fs.symlinkSync(path.relative(hooks, hook), precommit, 'file'); }
catch (e) {
console.error('pre-commit:');
console.error('pre-commit: Failed to symlink the hook file in your .git/hooks folder because:');
Expand Down

0 comments on commit 2abd42b

Please sign in to comment.