Skip to content

Commit dfdd65b

Browse files
committed
Fixes pasting patches w/ multiple repos
1 parent 4d29364 commit dfdd65b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class ApplyPatchFromClipboardCommand extends GlCommandBase {
225225

226226
async execute(): Promise<void> {
227227
const patch = await env.clipboard.readText();
228-
let repo = this.container.git.highlander;
228+
let repo = this.container.git.getBestRepositoryOrFirst();
229229

230230
// Make sure it looks like a valid patch
231231
const valid = patch.length ? await repo?.git.patch?.validatePatch(patch) : false;

0 commit comments

Comments
 (0)