From 5758a004ad8c6c2926f9261a439fdd71fc529765 Mon Sep 17 00:00:00 2001 From: Steven Kitterman Date: Thu, 18 Jul 2024 17:38:42 -0700 Subject: [PATCH] Only check for the hash if the build is local --- node-src/git/findAncestorBuildWithCommit.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-src/git/findAncestorBuildWithCommit.ts b/node-src/git/findAncestorBuildWithCommit.ts index 8d2757ffc..c51670050 100644 --- a/node-src/git/findAncestorBuildWithCommit.ts +++ b/node-src/git/findAncestorBuildWithCommit.ts @@ -70,7 +70,9 @@ export async function findAncestorBuildWithCommit( return [build, exists] as const; }) ); - const result = results.find(([build, exists]) => !build.uncommittedHash && exists); + const result = results.find( + ([build, exists]) => !(build.isLocalBuild && build.uncommittedHash) && exists + ); if (result) return result[0];