rugged icon indicating copy to clipboard operation
rugged copied to clipboard

Cannot add repository as a submodule if it does not have master branch

Open fen-x opened this issue 9 years ago • 0 comments

Rugged::SubmoduleCollection#clone_submodule assumes that every repository has master branch. It is usually true but not generally correct. For instance xcode-test-engine for arc has only stable and develop, last one is default. That means I cannot add mentioned repository as a submodule using rugged.

I did a search and found an explanation of how git determines default branch to checkout after git clone.

fen-x avatar Jan 15 '17 10:01 fen-x