Skip to content
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

Applying a branch fails: Is a directory (os error 21)) #5691

Open
jguhlin opened this issue Nov 27, 2024 · 4 comments
Open

Applying a branch fails: Is a directory (os error 21)) #5691

jguhlin opened this issue Nov 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jguhlin
Copy link

jguhlin commented Nov 27, 2024

Version

0.14.0

Operating System

Linux

Distribution Method

AppImage (Linux)

Describe the issue

Branch name changed for some reason, now getting this issue and unable to recover the data. Any ideas?

How to reproduce

No response

Expected behavior

No response

Relevant log output

2024-11-27T03:22:12.338501Z  INFO create_virtual_branch_from_branch:create_snapshot: crates/gitbutler-oplog/src/oplog.rs:155: new project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None }) remote=None pr_number=None
2024-11-27T03:22:12.344264Z  INFO create_virtual_branch_from_branch:create_snapshot: crates/gitbutler-oplog/src/oplog.rs:155: close time.busy=5.75ms time.idle=14.9µs project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None }) remote=Non>
2024-11-27T03:22:12.364272Z ERROR create_virtual_branch_from_branch: crates/gitbutler-repo/src/repository_ext.rs:196: error=Is a directory (os error 21) project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None }) remote=None pr_number=N>
2024-11-27T03:22:12.364319Z ERROR create_virtual_branch_from_branch: crates/gitbutler-branch-actions/src/branch_manager/branch_creation.rs:275: error=Is a directory (os error 21) project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None >
2024-11-27T03:22:12.364466Z ERROR create_virtual_branch_from_branch: crates/gitbutler-branch-actions/src/actions.rs:520: error=failed to apply

Caused by:
    Is a directory (os error 21) project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None }) remote=None pr_number=None
2024-11-27T03:22:12.364501Z ERROR create_virtual_branch_from_branch: crates/gitbutler-tauri/src/virtual_branches.rs:98: error=Error(failed to apply

Caused by:
    Is a directory (os error 21)) project_id=a638b8c4-1205-4b76-b4e4-06f387969ab2 branch=Local(Refname { branch: "8163cfef-3dea-4457-bc8f-d0f82b5b2d4b", remote: None }) remote=None pr_number=None
@jguhlin jguhlin added the bug Something isn't working label Nov 27, 2024
@estib-vega
Copy link
Contributor

Hello @jguhlin, thanks a lot for reporting this!
Sorry for the inconvenience.

now getting this issue and unable to recover the data

Are you able to go back to a previous state to recover the data? If you hit Ctrl + Z you should be able to see the history snapshots, and revert to the point before applying the branch.
Hopefully that allows you to recover the lost data 🤞.

As to the actual issue, could you help me out with some more details?

  • What was the branch name? (if you can share)
  • Was this branch created with GitButler or manually through git (local or remote branch)?

In the mean time I'll try to reproduce this state

@jguhlin
Copy link
Author

jguhlin commented Nov 27, 2024 via email

@estib-vega
Copy link
Contributor

Interesting.

Will take a look. Maybe @krlvi also knows what might be happening here

@jguhlin
Copy link
Author

jguhlin commented Nov 28, 2024

Thanks for the ctrl-z tip. I had moved past it now. I had most of it committed, so just deleted the local branches and applies the other, and re-did the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants