Skip to content

Commit 82b28ee

Browse files
ruslan-polutsygantarmolov
authored andcommitted
use absolute path to git-hooks lib instead of relative (#49) (#50)
1 parent a951480 commit 82b28ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git-hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
}
5252

5353
var hookTemplate = fs.readFileSync(__dirname + '/' + HOOKS_TEMPLATE_FILE_NAME);
54-
var pathToGitHooks = path.relative(hooksPath, __dirname);
54+
var pathToGitHooks = __dirname;
5555
// Fix non-POSIX (Windows) separators
5656
pathToGitHooks = pathToGitHooks.replace(new RegExp(path.sep.replace(/\\/g, '\\$&'), 'g'), '/');
5757
var hook = util.format(hookTemplate.toString(), pathToGitHooks);

0 commit comments

Comments
 (0)