Skip to content

Commit

Permalink
Merge pull request #1068 from boneskull/init-dev-env
Browse files Browse the repository at this point in the history
chore(scripts): init-dev-env.js will create .git/hooks
  • Loading branch information
vojtajina committed Jun 16, 2014
2 parents ecb6390 + 12c75ab commit efd561d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/init-dev-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var gitHookSetup = function() {
}

console.log('Adding symbolic link: %s linked to %s', scriptPath, gitHookPath);
try {
// "hooks" may not exist
fs.mkdirSync(path.dirname(gitHookPath));
} catch (e) {}
fs.symlinkSync(scriptPath, gitHookPath, 'file');
};

Expand Down

0 comments on commit efd561d

Please sign in to comment.