pre-commit
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -54,5 +54,7 @@ 'use strict'; | ||
var hookRelativeUnixPath = hook.replace(root, '.'); | ||
if(os.platform() === 'win32') { | ||
hookRelativeUnixPath = hookRelativeUnixPath.replace(/[\\\/]+/g, '/'); | ||
} | ||
var precommitContent = '#!/bin/bash' + os.EOL | ||
@@ -77,1 +79,9 @@ + hookRelativeUnixPath + os.EOL | ||
} | ||
try { fs.chmodSync(precommit, 777); } | ||
catch (e) { | ||
console.error('pre-commit:'); | ||
console.error('pre-commit: chmod 0777 the pre-commit file in your .git/hooks folder because:'); | ||
console.error('pre-commit: '+ e.message); | ||
console.error('pre-commit:'); | ||
} |
{ | ||
"name": "pre-commit", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Automatically install pre-commit hooks for your npm modules.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28726
561