| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
We do not currently use the sorted version of this input in the function, which means we produce bad results.
The loop is made with the assumption that the inputs are sorted and not using it leads to bad outputs.
We look at whether we're trying to replace a blob with a tree during the update phase, but we fail to look at whether we've just inserted a blob where we're now trying to insert a tree. Update the check to look at both places. The test for this was previously succeeding due to the bu where we did not look at the sorted output.
|
👍 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The loop/algo is made to assume that we have sorted inputs. We sort them to make sure but we failed to actually use the sorted list. The tests were inadvertently written with inputs that did not show this bad behaviour.
This fixes #3804