Skip to content

fix error when git config log.abbrevcommit=true #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2017
Merged

fix error when git config log.abbrevcommit=true #132

merged 1 commit into from
Jun 20, 2017

Conversation

spencersutton
Copy link
Contributor

If the git config setting log.abbrevcommit is set to true then when you click on a file in the history view to see the details you get an error. The source of the error is from the git.viewFileCommitDetails callback and is TypeError: Cannot set property 'previousSha1' of undefined.

It appears that the full SHA1 is being passed into the function but is trying to compare it to an abbreviated SHA1 from a call to git log. I solved this by adding the --no-abbrev-commit argument to the call to git log which overrides the log.abbrevcommit setting.

@DonJayamanne DonJayamanne merged commit 8cf26d3 into DonJayamanne:master Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants