Switches to use repoPath on GitService

This commit is contained in:
Eric Amodio
2017-03-28 16:42:35 -04:00
parent 8b0748608d
commit 19fe22f061
13 changed files with 34 additions and 40 deletions

View File

@@ -7,7 +7,7 @@ import { Logger } from '../logger';
export class OpenCommitInRemoteCommand extends ActiveEditorCommand {
constructor(private git: GitService, private repoPath: string) {
constructor(private git: GitService) {
super(Commands.OpenCommitInRemote);
}
@@ -35,7 +35,7 @@ export class OpenCommitInRemoteCommand extends ActiveEditorCommand {
commit = new GitCommit(commit.type, commit.repoPath, commit.previousSha, commit.previousFileName, commit.author, commit.date, commit.message);
}
const remotes = Arrays.uniqueBy(await this.git.getRemotes(this.repoPath), _ => _.url, _ => !!_.provider);
const remotes = Arrays.uniqueBy(await this.git.getRemotes(this.git.repoPath), _ => _.url, _ => !!_.provider);
return commands.executeCommand(Commands.OpenInRemote, uri, remotes, 'commit', [commit.sha]);
}
catch (ex) {