-
-
Notifications
You must be signed in to change notification settings - Fork 934
Assertion Error when "diffing" index during cherry pick conflict. #323
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
Comments
Thanks for the report. Which version of GitPython are you using (possibly via |
Hello, I've checked the version and it is 1.0.1. I made a very simple merge conflict; "Hello World!" is changed into "Hola World!" and "Hello Mundo!" in two different branches (master and topic). Here's how the bug appears (I also show what my index looks like);
As you can see, diffing HEAD with the working directory does work, just not comparisons with the index (which has three copies of each file, one for the common ancestor, one for 'ours' and one for 'theirs', with different stages). Thanks, |
You can watch the development stream on youtube.
|
I am trying to use gitpython to make a tool for helping in cherry-picking. The "repo.git.cherry_pick('hexsha')" command works perfectly, but, when I want to check the files with conflicts via
I get the following Assertion Error;
Similarly, when comparing with head,
I get a slightly different error (a_mode -> b_mode);
I'll be using the items with status non 0 in the index as a workaround for now (there are three per item with conflict).
Just for completeness, "diffing" works perfectly fine when not in cherry-picking conflict resolution (I tested it in the same session as the one that produced the errors).
Regards,
Agecaf
The text was updated successfully, but these errors were encountered: