commit-hash
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -32,4 +32,2 @@ var spawn = require('child_process').spawn, | ||
console.log('getCommitHash(\'%s\')', commitRef); | ||
function objectIsTag(commitRef, next) { | ||
@@ -85,6 +83,4 @@ spawn(opts.bin, ['describe', '--exact-match', commitRef]) | ||
if (err || !commitHash) { | ||
console.log(ref+' failed'); | ||
return next(new Error('invalid ref')); | ||
} | ||
console.log(ref+' ok!'); | ||
next(null, commitHash); | ||
@@ -91,0 +87,0 @@ }); |
{ | ||
"name": "commit-hash", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Get commit hash from a branch name, tag, or reference", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dgoguerra/commit-hash#readme", |
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
11009
257