diff --git a/lib/version.js b/lib/version.js index 31f1c9375d7..455bcc2dbad 100644 --- a/lib/version.js +++ b/lib/version.js @@ -142,7 +142,7 @@ function dump (data, cb) { function checkGit (localData, cb) { fs.stat(path.join(npm.localPrefix, '.git'), function (er, s) { - var doGit = !er && s.isDirectory() && npm.config.get('git-tag-version') + var doGit = !er && npm.config.get('git-tag-version') if (!doGit) { if (er) log.verbose('version', 'error checking for .git', er) log.verbose('version', 'not tagging in git')