Repository navigation
Conversation
Owner
|
@lyuzashi Sorry for taking so long to get to this PR, I've been on holidays for the last few weeks, and haven't had much internet access either. Rather than the changes suggested in this PR, I think I've fixed the issue with a small simple change - see my PR here: #7 The summary is that rather than looking for the file in the commit for the sha, just get the file from the tree at that sha instead, which means that it will always exist regardless of whether it was modified in the commit or not. LMK what you think - and thanks again for your help |
Owner
|
Fixed in #7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So sorry @alex-e-leon, I came across another edge case I'd introduced when
In this case, that large file will not be found in the particular commit that is looked up resulting in an error
To address this, I've reintroduced passing around the sha of every file that is retrieved by
compareCommitsand used that as a fallback if the particular commit for comparison does not include that file.Let me know your thoughts on this.
Test case: (note commit at 1.3.0 of my sample repo does not include a change on the zip)
Really hoping to eventually find time to write some unit tests for all these cases.