•  
      request #46772 Pull requests based on orphan branch cause internal error
    Infos
    #46772
    Joris MASSON (jmasson)
    2026-02-18 11:26
    2026-02-11 16:52
    48498
    Details
    Pull requests based on orphan branch cause internal error

    When I create a pull request based on an orphan branch (special branch type in Git), then Tuleap raises errors and seems unable to even display the user interface.

    Instead, it should display the user interface and let people at least close the pull request. Ideally Tuleap should be able to merge the branch, but that is nice-to-have and could be the subject of another request.

    Here is the reproduction scenario:

    • Create a git repository on Tuleap
    # Clone the Tuleap repository locally
    # …
    $ git checkout --orphan=orphan_branch
    # Create a file README.txt and write some text in it
    $ git add README.txt
    $ git commit
    $ git push origin orphan_branch
    
    • Then create a pull request from orphan_branch to the default branch of the repository.
    Pull Request
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Martin GOYOT (goyotm)
    Closed
    2026-02-18
    Attachments
    Empty
    References
    Referenced by request #46772

    Follow-ups

    User avatar
    Martin GOYOT (goyotm)2026-02-16 17:15
    • Status changed from Under implementation to Under review
    • Assigned to changed from Joris MASSON (jmasson) to Martin GOYOT (goyotm)