backfill-cache
Advanced tools
Comparing version 5.2.5 to 5.2.6
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Sat, 31 Jul 2021 21:37:54 GMT", | ||
"date": "Tue, 21 Sep 2021 22:29:36 GMT", | ||
"tag": "backfill-cache_v5.2.6", | ||
"version": "5.2.6", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Fix git root detection in worktrees", | ||
"author": "elcraig@microsoft.com", | ||
"commit": "c21ba92bfd37769ee06a2f3269694b6d8dfa14e9", | ||
"package": "backfill-cache" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Sat, 31 Jul 2021 21:38:03 GMT", | ||
"tag": "backfill-cache_v5.2.5", | ||
@@ -8,0 +23,0 @@ "version": "5.2.5", |
# Change Log - backfill-cache | ||
This log was last generated on Sat, 31 Jul 2021 21:37:54 GMT and should not be manually modified. | ||
This log was last generated on Tue, 21 Sep 2021 22:29:36 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 5.2.6 | ||
Tue, 21 Sep 2021 22:29:36 GMT | ||
### Patches | ||
- Fix git root detection in worktrees (elcraig@microsoft.com) | ||
## 5.2.5 | ||
Sat, 31 Jul 2021 21:37:54 GMT | ||
Sat, 31 Jul 2021 21:38:03 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -13,7 +13,9 @@ "use strict"; | ||
function getRepoRoot(cwd) { | ||
const gitFolder = find_up_1.default.sync(".git", { cwd, type: "directory" }); | ||
if (!gitFolder) { | ||
// .git is typically a folder but will be a file in a worktree | ||
const nearestGitInfo = find_up_1.default.sync(".git", { cwd, type: "directory" }) || | ||
find_up_1.default.sync(".git", { cwd, type: "file" }); | ||
if (!nearestGitInfo) { | ||
throw new Error("The location that backfill is being run against is not in a git repo"); | ||
} | ||
return path_1.dirname(gitFolder); | ||
return path_1.dirname(nearestGitInfo); | ||
} | ||
@@ -69,2 +71,2 @@ function fetchHashesFor(cwd) { | ||
exports.CacheStorage = CacheStorage; | ||
//# sourceM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0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsTUFBTSxDQUNuRCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxLQUFLLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FDdEMsQ0FBQztRQUVGLGtFQUFrRTtRQUNsRSxNQUFNLGdCQUFnQixHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsNEJBQTRCLENBQUMsS0FBSyxHQUFHLENBQUM7UUFDM0UsTUFBTSxZQUFZLEdBQUcsZ0JBQWdCO1lBQ25DLENBQUMsQ0FBQyx1QkFBdUIsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsY0FBYyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUNwRSxDQUFDLENBQUMsdUJBQXVCLENBQUM7UUFFNUIsTUFBTSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxZQUFZLENBQUMsQ0FBQztRQUNwQyxNQUFNLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDaEIsQ0FBQztDQUtGO0FBMUNELG9DQTBDQyJ9 |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "5.2.5", | ||
"version": "5.2.6", | ||
"main": "lib/index.js", | ||
@@ -13,0 +13,0 @@ "scripts": { |
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
44964
601