Browse Source

Fixes issue with staged sha showing

main
Eric Amodio 7 years ago
parent
commit
73d3e4994d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/gitService.ts

+ 1
- 1
src/gitService.ts View File

@ -1422,7 +1422,7 @@ export class GitService extends Disposable {
if (sha === undefined) return undefined; if (sha === undefined) return undefined;
if (sha === GitService.deletedSha) return '(deleted)'; if (sha === GitService.deletedSha) return '(deleted)';
return Git.isSha(sha)
return Git.isSha(sha) || Git.isStagedUncommitted(sha)
? Git.shortenSha(sha) ? Git.shortenSha(sha)
: sha; : sha;
} }

Loading…
Cancel
Save