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
Walker sometimes fails to hide commits #431
Comments
Have you tried the same thing with the latest version of Rugged from git? |
Is there a gem already released for a newer version? |
You could try |
0.21.1b2 looks to have solved the regression. Do you recommend 0.21.1b instead? |
@arthurschreiber was this a problem with Rugged or libgit2? |
This is a problem with libgit 0.21.0. In general, 0.21.1b2 should be fine, but it might include breaking API changes, so YMMV. |
@arthurschreiber Can you speak in general terms as to the timeline for a 0.21.1 release (Days, Weeks, Months)? |
Except for potential API changes, Also, the @vmg I'm not sure what to do here. I'd like to release a |
Hey folks, I just release 0.21.2, which comes bundled with libgit 0.21.2 and should fix the issue you're seeing with the walker. Let me know if you run into any issues with that release. |
Background
I recently upgraded GitLab from v7.3 to v7.4. One of the big changes in GitLab supplants Grit with Rugged to compute comparisons between commit objects. I'm noticing undesired behavior with computing comparisons: In some, but not all cases, the comparison returns the entire history of the branch rather than the difference between two branches. There is an active GitLab bug report that expresses others frustrations with this issue: https://github.com/gitlabhq/gitlabhq/issues/8174
This bug is causing a variety of downstream problems the administration of a GitLab v7.4 instance.
Verification
I fired up irb to isolate various Rugged versions and reproduce the behavior. Unfortunately I cannot furnish the repository used here for reproduction. As you can see, Rugged 0.19 produces the correct number of commits between those to objects but Rugged 0.21 is not properly hiding the rest of the commits and returning everything.
Just glancing at the code, it appears that the walker is not properly hiding the rest of the commits.
Rugged 0.19
Rugged 0.21
Here is my environment details:
The text was updated successfully, but these errors were encountered: