Skip to content

CalledProcessError on branch named "stash" #3

Open
@dmtucker

Description

@dmtucker
$ git switch heads/stash
fatal: a branch is expected, got 'refs/heads/stash'
Traceback (most recent call last):
  File "/home/dtux/.local/bin/git-rebase-branches", line 8, in <module>
    sys.exit(main())
  File "/home/dtux/.local/pipx/venvs/git-rebase-branches/lib/python3.10/site-packages/git_rebase_branches.py", line 152, in main
    run(["git", "switch", branch], check=True)
  File "/home/dtux/.local/pipx/venvs/git-rebase-branches/lib/python3.10/site-packages/git_rebase_branches.py", line 183, in run
    return subprocess.run(command, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'switch', 'heads/stash']' returned non-zero exit status 128.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions