-
Notifications
You must be signed in to change notification settings - Fork 127
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
Error: untracked working tree files aborts imerge #184
Comments
Looking into the sourcecode now, I've traced the problem to line 2707 where the |
Indeed, if I manually run the |
Ok, good, I solved my immediate problem :) Perhaps it would be useful to print the It seems to be rather useful to me, at least, since while typing this, my merge already stumbled onto another similar situation. Maybe I'm missing some other obvious solution to my issue, though. |
It seems the issue arises on merging |
Well aren't you having a nice conversation with yourself? :) It seems to me that your error refers to a file not being added to staging before you committed your changes. looks like you need to add it with git add and append it to your commit ? |
I noticed that the exit code on the failing merge command is 128. Looking at the git source code here, it seems this error code can be caused by several conditions. For recursive merge, the two possibilities are that:
So, just catching the merge command's error code won't be enough, the state of the repo would have to be included as well. Also, this is just the recursive merge case, not sure what happens in the "ort" case, but also not sure whether that's relevant for imerge. |
I have a large merge that I'm trying to perform with
imerge
, reproducable as follows:However, I get the following output:
Notice the error in the middle, after which it says it has aborted. After this,
git status
does not say anything about being in a merge process, as I would expect. It just ends up in theimerge/master
branch with a long list of untracked files. Also, there are no merge conflict>>>>>
and<<<<<
lines in the files that are indicated in the Conflicts list in the output, so I guess indeed the auto-merging part has aborted and I guessgit-imerge
was not expecting this, because the rest of the output seems to indicate that there is still something to be done. However, I'm at a loss on how to continue at this point.I hope this is clear, if not please let me know. What can I do here to continue the process?
The text was updated successfully, but these errors were encountered: