-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix scm history going out of sync after commit #12592
fix scm history going out of sync after commit #12592
Conversation
1b684f3
to
e34e9e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erezmus thank you for the contribution, can you confirm if you are also seeing this bug which I experienced with the pull-request:
- start the application with a workspace under git version control (I was on master)
- make some changes
- commit the changes
- open the history-view and the new commit is present
- in the terminal perform a hard reset (ex:
git reset --hard origin/master
) - the history-view will fail to show any history
@vince-fugnitto correct, i can reproduce it. will fix |
e34e9e8
to
939678d
Compare
Pushed a new fix and also added caching of avatars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated changes look good to me 👍
Do you mind force pushing to restart the eca check
(it seems to be hanging and is required).
history = history.slice(1); | ||
} | ||
|
||
const avatarCache = new Map<string, string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code never calls set
on this cache. Is it an oversight, or am I missing something?
Outstanding comments #12592 (comment)
@erezmus Ping! Please address #12592 (comment). |
What it does
How to test
Review checklist
Reminder for reviewers