@lerna/describe-ref
Advanced tools
Comparing version 3.8.1 to 3.9.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.9.0](https://github.com/lerna/lerna/compare/v3.8.5...v3.9.0) (2019-01-08) | ||
### Bug Fixes | ||
* **describe-ref:** Properly handle sha-like tag names ([#1853](https://github.com/lerna/lerna/issues/1853)) ([094a1cb](https://github.com/lerna/lerna/commit/094a1cb)) | ||
## [3.8.1](https://github.com/lerna/lerna/compare/v3.8.0...v3.8.1) (2018-12-31) | ||
@@ -8,0 +19,0 @@ |
@@ -59,6 +59,7 @@ "use strict"; | ||
function parse(stdout, options = {}) { | ||
const minimalShaRegex = /^([0-9a-f]{7,40})(-dirty)?$/; | ||
// when git describe fails to locate tags, it returns only the minimal sha | ||
if (/^[0-9a-f]{7,40}/.test(stdout)) { | ||
if (minimalShaRegex.test(stdout)) { | ||
// repo might still be dirty | ||
const [, sha, isDirty] = /^([0-9a-f]{7,40})(-dirty)?/.exec(stdout); | ||
const [, sha, isDirty] = minimalShaRegex.exec(stdout); | ||
@@ -65,0 +66,0 @@ // count number of commits since beginning of time |
{ | ||
"name": "@lerna/describe-ref", | ||
"version": "3.8.1", | ||
"version": "3.9.0", | ||
"description": "Parse git describe output for lerna-related tags", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "00a372e194e23674fc0b7e94cc0f5ee799a13036" | ||
"gitHead": "1c1ac155323499ba175d7f7e33c2e3f42a57a2f2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6632
57