Default branch isn't master branch, but git clone doesn't checkout to the default branch

Issue #998 resolved
sparsick created an issue

We have some Git repositories without a master branch. Therefore, we configure a default branch in SCM manager (let's call this new default branch foo). My expectation is that when I clone this repository, that git checkout the branch foo automatically, because it is configured as default branch.

But actual I get following warning message

warning: remote HEAD refers to nonexistent ref, unable to checkout.

and I have checkout the branch foo manually.

Comments (6)

  1. Sebastian Sdorra repo owner
    • changed status to open

    The default branch is currently only used by the ui and not for the git protocol.

    But you are right, i think we could do better. We will try to fix it.

  2. Log in to comment