We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bb17af commit 1517d6dCopy full SHA for 1517d6d
lib/versions/version-info.js
@@ -74,16 +74,17 @@ var getTaggedVersion = function() {
74
var gitTagResult = shell.exec('git describe --exact-match', {silent:true});
75
76
if ( gitTagResult.code === 0 ) {
77
- var tag = gitTagResult.output;
+ var tag = gitTagResult.output.trim();
78
var version = semver.parse(tag);
79
- if ( version ) {
80
- if ( version.satisfies(currentPackage.branchVersion) ) {
81
- version.codeName = getCodeName(tag);
82
- }
+
+ if ( version && semver.satisfies(version, currentPackage.branchVersion)) {
+ version.codeName = getCodeName(tag);
83
version.full = version.version + '+' + version.build;
84
return version;
85
}
86
87
+ return null;
88
};
89
90
/**
0 commit comments