Skip to content

Commit

Permalink
Only check for the hash if the build is local
Browse files Browse the repository at this point in the history
  • Loading branch information
skitterm committed Jul 19, 2024
1 parent 8446652 commit 5758a00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/git/findAncestorBuildWithCommit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 5758a00

Please sign in to comment.