Skip to content

"Branch does not exist" when it definitely does! #35

@amomchilov

Description

@amomchilov
$ git chain setup -c my_chain master a b c
Branch does not exist: a

These branches clearly exist:

$ git branch
  a
  master
  b
  c

When I try to load the branches in the same way as GitChain::Git.branches, I see there's a difference:

$ git branch --list --format="%(refname:short)"
  heads/a
  master
  b
  c

I can see that my branch a's refname is actually heads/a, and that's making git-chain fail to pick it up. I don't know enough about git's internals to tell why some of my branches are prefixed with heads/, but not others.

as a temporary workaround, this works:

$ git chain setup -c my_chain master heads/a b c

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions