feat: move npm workaround for missing gitHead to the npm plugin
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ async function gitTagHead(tagName) {
|
||||
*
|
||||
* @param {string} gitHead The commit sha for which to retrieve the associated tag.
|
||||
*
|
||||
* @return {string} The tag associatedwith the sha in parameter or `null`.
|
||||
* @return {string} The tag associatedwith the sha in parameter or `undefined`.
|
||||
*/
|
||||
async function gitCommitTag(gitHead) {
|
||||
try {
|
||||
@@ -34,7 +34,7 @@ async function gitCommitTag(gitHead) {
|
||||
return shell.stdout;
|
||||
} catch (err) {
|
||||
debug(err);
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user