瀏覽代碼

Fixes wrong remote disconnection

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

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

@ -94,7 +94,7 @@ export class DisconnectRemoteProviderCommand extends Command {
async execute(args?: DisconnectRemoteProviderCommandArgs): Promise<any> {
if (args?.repoPath == null || args?.remote == null) return undefined;
const remote = (await Container.git.getRemotes(args.repoPath)).find(r => args.remote);
const remote = (await Container.git.getRemotes(args.repoPath)).find(r => r.name === args.remote);
if (!remote?.provider?.hasApi()) return undefined;
return remote.provider.disconnect();

Loading…
取消
儲存