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

Recover from a crash, by cleaning the worktree #1

Open
FauxFaux opened this issue Jun 10, 2021 · 1 comment
Open

Recover from a crash, by cleaning the worktree #1

FauxFaux opened this issue Jun 10, 2021 · 1 comment

Comments

@FauxFaux
Copy link
Contributor

If the app crashes, it leaves the worktree in the middle of a rebase, from which it can't recover.

• Pulling master...
Error: process exited with exit code exit status: 128
Command: ["git", "switch", "master"]
Stdout: 
Stderr: fatal: cannot switch branch while rebasing
Consider "git rebase --quit" or "git worktree add".

I fixed it with git worktree remove autorebase_worktree --force, maybe it could do it automatically.

(hi from reddit!)

@Timmmm
Copy link
Owner

Timmmm commented Jun 14, 2021

Good idea! I did think of this but I was hoping my coding skills were so great it would just never crash. Ah well.

(hi from reddit!)

Hi :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants