•  
      request #23036 A Git command executed in a repository forks 2 Git processes
    Infos
    #23036
    Thomas Gerbet (tgerbet)
    2021-09-22 10:46
    2021-09-15 15:46
    24587
    Details
    A Git command executed in a repository forks 2 Git processes

    Introduced by git #tuleap/stable/dffffec067b171d2dbfd80c51c2f80da98ffb8e2.

    Each calls made via Git_Exec calls indirectly BranchName::defaultBranchName(). BranchName::defaultBranchName() will generate a call to git check-ref-format in a attempt to verify if the branch name we give is valid. As a result we end up forking two times for no good reason (the default branch name is hardcoded), it's a waste of resources and it can lead to potential issues.

    SCM/Git
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-09-22
    Attachments
    Empty
    References

    Follow-ups