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

Does not work if run from a worktree #5

Open
Timmmm opened this issue Aug 12, 2021 · 3 comments
Open

Does not work if run from a worktree #5

Timmmm opened this issue Aug 12, 2021 · 3 comments

Comments

@Timmmm
Copy link
Owner

Timmmm commented Aug 12, 2021

If you make a git repository at /foo and then make a worktree at /bar then run autorebase in /bar it fails with a message like this:

• Creating worktree...
Error: process exited with exit code exit code: 128
Command: ["git", "worktree", "add", "--detach", "/bar/.git/autorebase/autorebase_worktree"]
Stdout: Preparing worktree (detached HEAD 7866eaea0a)

Stderr: fatal: could not create leading directories of '/bar/.git/autorebase/autorebase_worktree/.git': Not a directory
@dsully
Copy link
Contributor

dsully commented Jul 9, 2024

I'm seeing a variation of this:

    - Success!
• Rebasing heads/origin ...

Error: process exited with exit code exit status: 128
Command: ["git", "switch", "heads/origin"]
Stdout:
Stderr: fatal: a branch is expected, got 'refs/heads/origin'
hint: If you want to detach HEAD at the commit, try again with the --detach option.

@Timmmm
Copy link
Owner Author

Timmmm commented Jul 9, 2024

Ah I see... (should read my emails in order!)

Any chance you know how to reproduce this?

@dsully
Copy link
Contributor

dsully commented Jul 10, 2024

No.. it happens on all of my repos.

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