From 73d3e4994db04cec5fb561f40ca6fc0bf4b25c2f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 20 Dec 2017 16:18:33 -0500 Subject: [PATCH] Fixes issue with staged sha showing --- src/gitService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitService.ts b/src/gitService.ts index 330eee9..eaa4881 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -1422,7 +1422,7 @@ export class GitService extends Disposable { if (sha === undefined) return undefined; if (sha === GitService.deletedSha) return '(deleted)'; - return Git.isSha(sha) + return Git.isSha(sha) || Git.isStagedUncommitted(sha) ? Git.shortenSha(sha) : sha; }