Browse Source

Fixes show stashed changes with multiple repos

main
Eric Amodio 5 years ago
parent
commit
d5f889232e
2 changed files with 13 additions and 7 deletions
  1. +6
    -0
      CHANGELOG.md
  2. +7
    -7
      src/commands/showQuickStashList.ts

+ 6
- 0
CHANGELOG.md View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## Fixed
- Fixes the _Show Stashed Changes_ (`gitlens.showQuickStashList`) command with multiple repositories
## [9.7.3] - 2019-05-11
## Fixed

+ 7
- 7
src/commands/showQuickStashList.ts View File

@ -22,16 +22,16 @@ export class ShowQuickStashListCommand extends ActiveEditorCachedCommand {
async execute(editor?: TextEditor, uri?: Uri, args: ShowQuickStashListCommandArgs = {}) {
uri = getCommandUri(uri, editor);
const repoPath = await getRepoPathOrActiveOrPrompt(
uri,
editor,
`Show stashed changes for which repository${GlyphChars.Ellipsis}`
);
if (!repoPath) return undefined;
const progressCancellation = StashListQuickPick.showProgress('list');
try {
const repoPath = await getRepoPathOrActiveOrPrompt(
uri,
editor,
`Show stashed changes for which repository${GlyphChars.Ellipsis}`
);
if (!repoPath) return undefined;
const stash = await Container.git.getStashList(repoPath);
if (stash === undefined) return window.showWarningMessage('Unable to show stashed changes');

Loading…
Cancel
Save