I was attempting to check out your build so I could work on #1533404: Make toolbar module pass Coder Review, but encountered the following error:

git clone http://git.drupal.org/sandbox/lotyrin/1539824.git coder_8_x_port
Cloning into coder_8_x_port...
remote: Counting objects: 3135, done.
remote: Compressing objects: 100% (774/774), done.
remote: Total 3135 (delta 2295), reused 3121 (delta 2288)
Receiving objects: 100% (3135/3135), 950.34 KiB | 288 KiB/s, done.
Resolving deltas: 100% (2295/2295), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Comments

lotyrin’s picture

Assigned: Unassigned » lotyrin

Wonder what that's about.

lotyrin’s picture

Title: remote HEAD refers to nonexistent ref, unable to checkout. » Sandbox unable to set default branch for git clone
Project: » Git on Drupal.org
Component: Miscellaneous » Git
Assigned: lotyrin » Unassigned
Category: bug » feature

This is because you didn't specify a branch and there's no "master", and D.O git doesn't seem to let me configure the default branch for clone the way that github does.

You can either follow the VCS instructions from Drupal.org ('git clone --branch 8.x-1.x ...') or 'git checkout 8.x-1.x' after the clone gives you this warning.

It would be nice if (as because of naming conventions, few projects have 'master' branch) we could specify the default branch for cloning, so I've moved this (hopefully to the correct issue queue).

fluxsauce’s picture

Ah, I should have looked at the VCS instructions; it now works as expected when I specify the branch. Thanks, and looking forward to the broader resolution!

eliza411’s picture

Status: Active » Closed (duplicate)

This looks like a duplicate of #1074960: Let maintainers set a default branch on git repositories. If I'm mistaken, please re-open. I'll ping sdboyer for a status update on that issue, as I'm curious where it's at.