Menu

#1029 Garbage-collect git-based projects

4.1
closed-fixed
None
5
2017-08-09
2014-09-19
No

Similar to the "SVN Cleanup" feature request it would be also useful to periodically do a garbage collection on the local Git repository.

Saving and synchronizing the project takes longer and longer when the .git folder grows over a few 100MB and the translators periodically have to re-download the project to avoid this.

We had a case when the .git folder grown to 650MB and a day worth of translation was lost because the autosave was not able to complete the whole day.

JGit has garbage collection support since v2.1 and I was able to create a basic Groovy script to run GC, but I think it would be better if the GC would be run by OmegaT automatically.

FYI JGit had a bug fixed in v3.0 which could corrupt the Git repository on Windows if GC was ran twice.

Discussion

  • Aaron Madlon-Kay

    • summary: Git Team Project cleanup --> Garbage-collect git-based projects
    • status: open --> open-fixed
    • assigned_to: Aaron Madlon-Kay
    • Group: 3.1 --> 4.1
     
  • Aaron Madlon-Kay

    We have updated to JGit 4.8, which performs GC automatically. GC is performed synchronously after various git operations, when deemed necessary according to the default parameters (see git-gc).

    (Note that git GC is not analogous to svn cleanup at all.)

     
  • Didier Briel

    Didier Briel - 2017-08-09
    • status: open-fixed --> closed-fixed
     
  • Didier Briel

    Didier Briel - 2017-08-09

    Implemented in the released version 4.1.2 update 1 of OmegaT.

    Didier

     

Log in to post a comment.

MongoDB Logo MongoDB