diff --git a/lib/data-generators/version-commit.js b/lib/data-generators/version-commit.js index 4f1fdfc..6920754 100644 --- a/lib/data-generators/version-commit.js +++ b/lib/data-generators/version-commit.js @@ -22,7 +22,7 @@ module.exports = CoreObject.extend({ var info = gitRepoInfo(path); var sha = (info.sha || '').slice(0, 8); - var log = this._plugin.log; + var plugin = this._plugin; return readFile(versionFile) .then(function(contents) { @@ -36,7 +36,7 @@ module.exports = CoreObject.extend({ if (sha) { versionString = versionString + '+' + sha; } else { - log('Missing git commit sha, using package version as revisionKey', { color: 'yellow', verbose: true }); + plugin.log('Missing git commit sha, using package version as revisionKey', { color: 'yellow', verbose: true }); } return {