Fixes issue with stashes w/ only untracked files

This commit is contained in:
Eric Amodio
2017-09-15 03:27:58 -04:00
parent 2809991096
commit 858d9ec578
6 changed files with 39 additions and 28 deletions

View File

@@ -42,7 +42,7 @@ export class GitUri extends Uri {
}
else {
const commit = commitOrRepoPath;
base._fsPath = path.resolve(commit.repoPath, commit.originalFileName || commit.fileName);
base._fsPath = path.resolve(commit.repoPath, commit.originalFileName || commit.fileName || '');
if (commit.repoPath !== undefined) {
this.repoPath = commit.repoPath;