Skip to content

Commit

Permalink
chore(scripts): init-dev-env.js will create .git/hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hiller committed May 20, 2014
1 parent 9ef1c81 commit 12c75ab
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 12c75ab

Please sign in to comment.