Skip to content

Commit

Permalink
Fix stash pop
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Aug 14, 2017
1 parent 13484ae commit b5bf353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/git/src/commands.ts
Expand Up @@ -1110,14 +1110,14 @@ export class CommandCenter {
return;
}

const picks = this.model.stashes.map(r => `#${r.id}: ${r.description}`);
const picks = this.model.stashes.map(r => { return { label: `#${r.id}: ${r.description}`, description: "", derails: "", id: r.id }; });
const placeHolder = localize('pick stash', "Pick a stash");
const choice = await window.showQuickPick(picks, { placeHolder });

if (!choice) {
return;
}
return await this.model.stash(true, choice);
return await this.model.stash(true, choice.id);
}

@command('git.stashPopLatest')
Expand Down
2 changes: 1 addition & 1 deletion extensions/git/src/git.ts
Expand Up @@ -849,7 +849,7 @@ export class Repository {
if (pop) {
args.push('pop');
if (index) {
args.push(`"stash{${index}}"`);
args.push(`stash@{${index}}`);
}
}

Expand Down

0 comments on commit b5bf353

Please sign in to comment.