Fix bug in the hasNew of the GitResolver.

This commit is contained in:
André Cruz
2013-05-01 15:34:15 +01:00
parent 6b7df8fd50
commit 0c7e593370
2 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ GitResolver.prototype._hasNew = function (pkgMeta) {
return true;
}
// If resolved to a tag, there is new content if the tags are not equal
if (resolution.type === 'tag' && semver.neq(resolution.tag, oldResolution.tag)) {
// If resolved to a version, there is new content if the tags are not equal
if (resolution.type === 'version' && semver.neq(resolution.tag, oldResolution.tag)) {
return true;
}