mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 10:13:11 +02:00
Address workspace diff Greptile feedback
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user