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.
I would like to contribute to #1074960: Let maintainers set a default branch on git repositories.
Planned steps:
- Add a setHead or setDefaultBranch method to http://drupalcode.org/project/versioncontrol_git.git/blob/c9f1544d09399c...
- Add UI for setting the default branch under Project > Edit > Version control
- Submit the changes as patches to the appropriate projects, get reviews and request deployment
Just in case that's not always the case: The development environment would have to include git.
Comments
Comment #1
webchickHrm. :( Unfortunately, I don't think it's possible to get a dev environment with Git right now. :( I pinged Sam Boyer about it and asked him to chime in here.
Comment #2
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedThank you webchick.
Comment #3
sdboyer CreditAttribution: sdboyer commentedThat's correct. The current site environments do not support *any* git-related functionality. We have a larger project in the works to support that, but for the moment you'll just have to rely on setting up a local environment.
Comment #4
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedOk, thanks. Then for a local version ;)
(Maybe I'll reopen this when I get to a point where I feel the staging server might be useful anyway.)
Comment #5
webchickIs there an issue for tracking efforts on the larger VM project? I'm starting to get enough inquiries about this at various camps, etc. that we might find some eager volunteers to help push it forward.
Comment #6
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedNo need for bazar access anymore, I have my own test site running now. A git enabled staging VM would definetily be useful, though.
Comment #7
webchickIf it's not asking too much, it would be AWESOME for you to document how you got a local test site running with a sample Git repo as a sub-page to http://drupal.org/make-drupalorg-awesome
Comment #8
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedThat were a lot of hacks, some maybe unnescessary. I'll see (later) if I can come up with something.
Comment #9
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedCurrent status of that documentation: http://drupal.org/node/1313938
To test the update functions (that need only interaction with the database, not the actual repos) I created a new request for a development site: #1326564: I want a drupal.org development site for testing changes to the Verisoncontrol Git backend.