Skip to content

Commit

Permalink
fix: Don't log error message if git tagging is disabled
Browse files Browse the repository at this point in the history
PR-URL: #263
Credit: @woppa684
Close: #263
Reviewed-by: @mikemimik
  • Loading branch information
Bakel, Roel van authored and Michael Perrotte committed Dec 3, 2019
1 parent 1c65d26 commit ae7afe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function checkGit (localData, cb) {
statGitFolder(function (er) {
var doGit = !er && npm.config.get('git-tag-version')
if (!doGit) {
if (er) log.verbose('version', 'error checking for .git', er)
if (er && npm.config.get('git-tag-version')) log.verbose('version', 'error checking for .git', er)
log.verbose('version', 'not tagging in git')
return cb(null, false)
}
Expand Down

0 comments on commit ae7afe5

Please sign in to comment.