Browse Source

Fixes wrong remote connection

main
Eric Amodio 4 years ago
parent
commit
aace53be2d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/commands/remoteProviders.ts

+ 1
- 1
src/commands/remoteProviders.ts View File

@ -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…
Cancel
Save