Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can't seem to check out 7.x branch form git, normally I can check out the project then switch branches, but for some reason I don't have that option with this repo.
Comments
Comment #1
dereckd CreditAttribution: dereckd commentedComment #2
kenneth.venken CreditAttribution: kenneth.venken commentedI just checked out 7.x an hour ago. No problems using
git clone --branch master http://git.drupal.org/project/devel_themer.git
Can you give me the git commands you use so i can try and reproduce this issue?
Comment #3
RobW CreditAttribution: RobW commentedI was confused too, but now I think I understand what's going on:
1. Dev branches don't have tags, which is the normal way to check out a specific version of a module. See the Creating a branch or tag in Git doc page.
2. the 7.x branch is master here, which isn't necessarily true of other modules. No idea which is correct, but some modules (conditional fields, for example) have a remote 7-x branch and a master branch.
Comment #4
RobW CreditAttribution: RobW commentedMore info:
Drupal/git standards currently say that all projects should rename their master branches to the actual dev branch (#1076616: Projects should have "master" renamed to appropriate branch). Aside from being the standard, git_deploy adds the version to the .info file based on tag or branch name when you check out modules through git, which is the only (non-manual) way to get the right version in there for updates and dependencies.
I am guessing this will solve dereckd's problem -- if not and I hijacked this thread, let me know and I'll open a new issue.
Comment #5
RobW CreditAttribution: RobW commentedMy mistake, should be "7.x-1.x", because it's a branch not a tag "-dev" is implied.
Comment #6
kenneth.venken CreditAttribution: kenneth.venken commentedMore info on: http://drupal.org/empty-git-master.
Setting to 'needs work' since i don't have all the permissions to actually do this.
Comment #7
kenneth.venken CreditAttribution: kenneth.venken commentedI've created a new 7.x-1.x branch and emptied the master branch as described in http://drupal.org/empty-git-master.