•  
      request #10427 Use expected temporary directory when trying to merge a pull request
    Infos
    #10427
    Thomas Gerbet (tgerbet)
    2017-07-10 10:28
    2017-07-07 17:00
    10671
    Details
    Use expected temporary directory when trying to merge a pull request
    Currently when the pull request plugin tries to do a merge it does it in a folder under /var/lib/tuleap/gitolite/repositories/.

    The directories are temporary working directories and they should probably treated as such. Also, using a directory under /var/lib/tuleap/gitolite/repositories/ can cause issues, it seems that under some (not yet determined) conditions the created directory can become owned by the gitolite user instead of the initial codendiadm user which will block future merges with this error:
    This Pull Request cannot be merged: Command execution failure: /opt/rh/git19/root/usr/bin/git --work-tree='' --git-dir='/.git' fetch '/var/lib/tuleap/gitolite/repositories/test/PR_Test.git' 'refs/heads/feature/test-ss' (return value: 128):
    fatal: Not a git repository: '/.git'
    Pull Request
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-07-10
    Attachments
    Empty
    References
    Referencing request #10427
    Referenced by request #10427

    Artifact Tracker v5

    rel #10352 9.10

    Follow-ups

    User avatar
    Integrated into pullrequest code base.

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2017-07-10