Closed jonpugh closed 10 years ago
calling git branch works even in a bare repo clone. It will list all branches and * the active one.
hubdrop@hubdrop:~/repos/pathauto.git$ git branch
4.6.x-1.x
4.7.x-1.x
5.x-1.x
5.x-2.x
6.x-1.x
6.x-2.x
* 7.x-1.x
MAIN
master
I also noticed this... it makes very old commits visible as a first impression on e.g. https://github.com/drupalprojects/hosting_site_git
The github repo is created before we clone the drupal.org repo, so this would have to happen on hubdrop-update-mirrors instead. This is good, it will (i think) keep the github default branch lined up with the drupal.org default branch.
I just pushed a big refactor. "hubdrop" is now a service. There are commands so I can remove the hubdrop/scripts repo and keep everything in the symfony app.
All done. Any time \HubDrop\Bundle\Service\Project->update()
is called, the default branch is updated.
Right now it defaults to master.