-
Notifications
You must be signed in to change notification settings - Fork 343
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
Rebasing commit with files that is "unignored" in new parent "trashes" working copy #778
Comments
How do you "recover" the repo at this point?
and now im repo is broken,
edit: I just used git directly to alter the workspace, after changing commits, I was able to use jj again. |
Sorry about the bug. Maybe it was a version of #976 (i.e. an issue with updating from a commit where a file is ignored to a commit where the file exists). I'm glad you found a workaround at least. |
I think I just hit this one, too. Steps:
I moved the offending file, and everything seems okay... |
@landtuna: I'm sorry about the bug. We have talked about adding some kind of temporary ignores to handle that case but I can't find the discussion now (@ilyagr, do you remember where we talked about it?). The idea is that we'd notice when we update from one commit to another if any .gitignores changed. If they did, we'd add matching paths to an additional list of files to ignore. It seems like that would work. |
Found it: #323 (comment). Perhaps that should be a duplicate of this one (or vice-versa)? |
Thanks!
I see that bug mostly as a feature request for turning off the auto-tracking. #976 sounds like a duplicate of this bug (feel free to close that one if you agree). I guess we don't have one that I would consider the canonical bug for the "temporary ignores" feature we're talking about here. |
As noted above, this seems like a duplicate of #976 (which is now fixed). |
Description
After fetching a commit that removes
BUILD.bazel
from.gitignore
and adds files, I tried rebasing an older branch on top of it (while having "local" versions of the "unignored" files), causingBUG: Working copy lock was dropped without being closed.
Related Discord conversation: https://discord.com/channels/968932220549103686/969829516539228222/1044444142379475095
Steps to Reproduce the Problem
foo
in.gitignore
and a file calledfoo
. Commit B removesfoo
from.gitignore
and adds a new filefoo
.Expected Behavior
Not sure, divergence? Conflict marker? Overwrite
foo
with the contents in commit B?Actual Behavior
And repo becomes unusable until the situation is recovered.
The text was updated successfully, but these errors were encountered: