•  
      request #16199 Unrecognized git reference when the repository contains hyphen or dot
    Infos
    #16199
    Aurélien Tisné (atisne)
    2021-12-08 14:33
    2020-08-07 14:52
    17455
    Details
    Unrecognized git reference when the repository contains hyphen or dot
    The git repository creation allow to use hyphen and dot in the repository name.
    But the reference regexp don't accept these two characters to recognize a reference to a repo.

    Steps to reproduce:
    1- create a repo with the name 'my-repo'
    2- clone the repo
    3- add a file and push it to the server
    4- create a tracker item using a git reference to the previous commit in its description (git #my-repo/<commit-hash>)
    -> the reference is not clickable

    I think we have to look in the function _getExpForRef() in https://tuleap.net/plugins/git/tuleap/tuleap/stable?a=blob&hb=185ee792f6b80bfee00737a8bec3d56f4fc99dbb&h=bde3a200aa714b10d5a82ab5c26e24e865aae6d0&f=src%2Fcommon%2Freference%2FReferenceManager.class.php#L575
    Other
    11.15
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-12-02
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.133


    • Status changed from Under review to Closed
    • Assigned to changed from None to Thomas Gerbet (tgerbet)
    • Connected artifacts
    • Close date set to 2021-12-02
    User avatar
    Thomas Gerbet (tgerbet)2020-08-07 14:56
    Hello,

    Thanks for the report. I confirm the issue.

    • Status changed from New to Verified