Closed (duplicate)
Project:
Git on Drupal.org
Component:
Git
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2012 at 14:59 UTC
Updated:
2 May 2012 at 15:08 UTC
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
Comment #1
lotyrin commentedWonder what that's about.
Comment #2
lotyrin commentedThis 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).
Comment #3
fluxsauce commentedAh, 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!
Comment #4
eliza411 commentedThis 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.