瀏覽代碼

Fixes wrong remote connection

main
Eric Amodio 4 年之前
父節點
當前提交
aace53be2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/commands/remoteProviders.ts

+ 1
- 1
src/commands/remoteProviders.ts 查看文件

@ -42,7 +42,7 @@ export class ConnectRemoteProviderCommand extends Command {
if (args?.repoPath == null || args?.remote == null) return false;
const remotes = await Container.git.getRemotes(args.repoPath);
const remote = remotes.find(r => args.remote);
const remote = remotes.find(r => r.name === args.remote);
if (!remote?.provider?.hasApi()) return false;
const connected = await remote.provider.connect();

Loading…
取消
儲存