Skip to content

Commit 5682da6

Browse files
committed
Fixes missing sha
1 parent e66046b commit 5682da6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
77
## [Unreleased]
88
### Fixed
99
- Fixes issue where [Gravatars](https://en.gravatar.com/) in the gutter blame annotations weren't restored on tab switch
10+
- Fixes issue where the id (sha) was missing in the hover blame annotations for uncommitted changes
1011

1112
## [7.5.3] - 2018-01-15
1213
### Fixed

src/annotations/annotations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class Annotations {
8686
message = `\n\n> ${message}`;
8787
}
8888
else {
89-
showCommitDetailsCommand = `\`${commit.shortSha}\``;
89+
showCommitDetailsCommand = `\`${commit.shortSha || '00000000'}\``;
9090
}
9191

9292
const markdown = new MarkdownString(`${showCommitDetailsCommand}   ![](${commit.getGravatarUri(Container.config.defaultGravatarsStyle).toString()})  __${commit.author}__, ${commit.fromNow()}   _(${commit.formatDate(dateFormat)})_ ${message}${commandBar}`);

0 commit comments

Comments
 (0)