Fixes issue where the revision wasn't properly opened

Adds ability to provide a branch to open file in remote
This commit is contained in:
Eric Amodio
2017-09-12 10:38:51 -04:00
parent 9464f7e79f
commit 503b2a3785
4 changed files with 19 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ export class BranchHistoryNode extends ExplorerNode {
const log = await this.git.getLogForRepo(this.uri.repoPath!, this.branch.name, this.maxCount);
if (log === undefined) return [];
const children = Iterables.map(log.commits.values(), c => new CommitNode(c, this.template, this.context, this.git));
const children = Iterables.map(log.commits.values(), c => new CommitNode(c, this.template, this.context, this.git, this.branch));
if (!log.truncated) return [...children];
return [...children, new ShowAllCommitsNode(this, this.context)];