•  
      request #8076 Save deleted git repositories before purging them
    Infos
    #8076
    Nouha Terzi (terzino)
    2015-07-23 09:12
    2015-05-13 17:44
    8094
    Details
    Save deleted git repositories before purging them
    As done for documents and files, we need to move the git archives thru archivedeleteditem plugin before purging them.
    SCM/Git
    All
    Empty
    • [x] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Nouha Terzi (terzino)
    Closed
    2015-07-23
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Merged in Tuleap 8.4.99.14.

    Thanks for your contribution !

    • Status changed from Under review to Closed
    • Close date changed from 2015-05-13 to 2015-07-23
    User avatar

    I add my comments posted on Gerrit here:

    I've got this in my logs:

    2015-06-10T06:10:02+02:00 [info] Purge of archived Gitolite repository: depot3
    2015-06-10T06:10:02+02:00 [info] [Gitolite] Moving to the archiving area before purge: depot3
    2015-06-10T06:10:02+02:00 [debug] Delete backup git-anonymous_depot3_1433867908
    2015-06-10T06:10:02+02:00 [info] Purge of Gitolite repository: depot3 terminated

    But I've nothing in my archive dir (defined in the archived deleted item plugin):

    ll /home/codendiadm total 0

    Maybe log more errors ?

    User avatar
    Here are my results :

    ## logs

    2015-06-04T06:10:01+02:00 [info] Purge of archived Gitolite repository: mouhahaha
    2015-06-04T06:10:01+02:00 [info] [Gitolite] Moving to the archiving area before purge: mouhahaha
    2015-06-04T06:10:01+02:00 [debug] Delete backup git-anonymous_mouhahaha_1433346818
    2015-06-04T06:10:01+02:00 [info] Purge of Gitolite repository: mouhahaha terminated

    ## Archived area

    -bash-4.1# ll /tmp/ -rw-r----- 1 root root 6588 May 28 08:44 git-anonymous_mouhahaha_1432817006.tar.gz.backup

    So I've got few questions:

    * Why the prefix _gitolite_ is not used ?
    * Does the owner must be root:root ?

    (You can see this comment in Gerrit directly)