hillclimb 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13592,7 +13592,7 @@ function isGitRepo(dir) {
|
|
|
13592
13592
|
return false;
|
|
13593
13593
|
}
|
|
13594
13594
|
}
|
|
13595
|
-
function
|
|
13595
|
+
function captureWorkingCommitSha(repoRoot) {
|
|
13596
13596
|
try {
|
|
13597
13597
|
const sha = git(repoRoot, ["stash", "create"]);
|
|
13598
13598
|
if (sha) return sha;
|
|
@@ -13607,6 +13607,9 @@ function captureBaselineSha(repoRoot) {
|
|
|
13607
13607
|
return git(repoRoot, ["commit-tree", tree, "-m", "empty baseline"]);
|
|
13608
13608
|
}
|
|
13609
13609
|
}
|
|
13610
|
+
function captureBaselineSha(repoRoot) {
|
|
13611
|
+
return captureWorkingCommitSha(repoRoot);
|
|
13612
|
+
}
|
|
13610
13613
|
function pinRef(repoRoot, refName, sha) {
|
|
13611
13614
|
git(repoRoot, ["update-ref", refName, sha]);
|
|
13612
13615
|
}
|
|
@@ -13617,13 +13620,7 @@ function deleteRef(repoRoot, refName) {
|
|
|
13617
13620
|
}
|
|
13618
13621
|
}
|
|
13619
13622
|
function captureSnapshotSha(repoRoot) {
|
|
13620
|
-
|
|
13621
|
-
const sha = git(repoRoot, ["stash", "create"]);
|
|
13622
|
-
if (sha) return sha;
|
|
13623
|
-
} catch (err) {
|
|
13624
|
-
if (isGitTimeoutError(err)) throw err;
|
|
13625
|
-
}
|
|
13626
|
-
return git(repoRoot, ["rev-parse", "HEAD"]);
|
|
13623
|
+
return captureWorkingCommitSha(repoRoot);
|
|
13627
13624
|
}
|
|
13628
13625
|
function recordOmittedSnapshotFile(omittedFiles, file, options = {}) {
|
|
13629
13626
|
omittedFiles?.push(file);
|