浏览代码

Fixes wrong remote connection

main
Eric Amodio 5 年前
父节点
当前提交
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();

正在加载...
取消
保存