Address workspace diff Greptile feedback

This commit is contained in:
Dotta committed 2026-05-19 14:43:26 -05:00
1 parent 3e451ff694
commit 3d13029336
2 files changed
+7 -8

No files matched your search

@@ -681,8 +681,11 @@ async function resolveInferredDefaultBaseRef(cwd: string) {
const upstream = await resolveGitUpstreamRef(cwd);
if (upstream) return upstream;
for (const candidate of ["origin/master", "origin/main", "master", "main"]) {
const resolved = await resolveVerifiedGitRef(cwd, candidate);
const candidates = ["origin/master", "origin/main", "master", "main"];
const resolvedCandidates = await Promise.all(
candidates.map((candidate) => resolveVerifiedGitRef(cwd, candidate)),
);
for (const resolved of resolvedCandidates) {
if (resolved) return resolved;
}