Can not create new branches on issue forks 10.1.x branch

Created on 23 November 2022, almost 2 years ago
Updated 20 February 2024, 9 months ago

Problem/Motivation

Can not create new branches on issue forks 10.1.x branch in addition to existing branches .

Steps to reproduce

1. Go to Issue #3032433 ๐Ÿ“Œ Allow section storages to be loaded via routing without loading from the tempstore Needs work
2. Click on create new branch.
3. Provide new branch name and select create from value to 10.1.x

Ideally a new branch needs to be created with current head at 10.1.x but it is not creating new branch and throwing error

Failed to create branch '3032433-allow-section-storages-10.x': invalid reference name '10.1.x'


It is not the first timeI observed this issue it occurred to me earlier as well.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: works as designed

Version

3.0

Component

GitLab integration

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia bhanu951

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mxt Milan

    Encountered the same issue trying to work on #3156754

    I reread this tons of times:

    I recommend branching in your local checkout and pushing from there. That way you can update 10.1.x from the canonical drupal project, which you can keep at the origin Git remote. Then branch from there and push to the issue forkโ€™s Git remote.

    but I just don't understand what I should do, sorry...

    Can you please write down a crystal clear step by step guide for dummies where nothing is given for granted?

    I really would like to contribute to Drupal...

    (I also think that this should be "officially" documented somewhere, in the issue forks guide maybe? Or, better, it would be nice to have a feature somewhere that easily allows to fetch updates from the issue fork itself)

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia bhanu951

    @mxt

    but I just don't understand what I should do, sorry...

    One way to resolve it to follow below steps.

    1. git checkout 10.1.x
    2. git remote add drupal-123456
    3. git checkout -b 123456-issue-short-description-10.x
    4. Make changes
    5. Commit changes
    6. git push drupal-12356 123456-issue-short-description-10.x
    7. Create MR from the UI or URL displayed in the terminal after push.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mxt Milan

    Thank you @Bhanu951,

    I used DrupalPod โ†’ , and at the end I was able to create a new working branch based on 10.1.x in the (old) pre-existing issue fork following your suggestions.

    In particular, using DrupalPod, I had to:

    1. Start a DrupalPod session WITHOUT selecting an existing branch (so 10.1.x was automatically chosen)
    2. Remove existing remote
    3. Add new drupal-123456 remote
    4. Create 123456-issue-short-description-10.1.x branch
    5. Make/commit changes
    6. Push the new branch
    7. The new 123456-issue-short-description-10.1.x branch is now listed under the issue fork branches in the issue itself

    Thank you.

  • ๐Ÿ‡ฉ๐Ÿ‡ฐDenmark ressa Copenhagen
Production build 0.71.5 2024