•  
      request #10928 Forking a repository rely only on the filesystem content of the forked repository
    Infos
    #10928
    Thomas Gerbet (tgerbet)
    2017-12-18 10:17
    2017-12-14 15:22
    11263
    Details
    Forking a repository rely only on the filesystem content of the forked repository
    This can cause issue if the source repository has been created under Gitolite2 and the Tuleap instance is now running Gitolite3, Gitolite configuration will not be updated until a new Git repo is created in the project (meaning users will not be able to access the forked repo). In this case, the FORK_REPO system event is in error with this kind of traces (sorry for the french in the logs...):

    Command execution failure: cd /var/lib/tuleap/gitolite/repositories; sg - gitolite -c "cp -f /var/lib/tuleap/gitolite/repositories/project1/test_gitolite.git/hooks/* /var/lib/tuleap/gitolite/repositories/project1/u/user1/test_gitolite.git/hooks/" 2>&1 (return value: 1):
    cp: impossible d'évaluer « /var/lib/tuleap/gitolite/repositories/project1/test_gitolite.git/hooks/gl-pre-git.hub-sample »: Aucun fichier ou dossier de ce type
    cp: impossible d'évaluer « /var/lib/tuleap/gitolite/repositories/project1/test_gitolite.git/hooks/post-receive »: Permission non accordée
    cp: impossible d'évaluer « /var/lib/tuleap/gitolite/repositories/project1/test_gitolite.git/hooks/update »: Permission non accordée


    Also, it appears than in some undefined cases the filesystem permission applied to the forked repo are wrong which leads to this kind of errors client side when the user try to push new content:

    remote: error: insufficient permission for adding an object to repository database ./objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit


    The fork process must be made more resilient.
    SCM/Git
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-12-18
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Integrated into Tuleap 9.15.99.33

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2017-12-18