<< Back to previous view |
![]() |
[QB-3003] Git gc run before doing a fetch/pull
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 6.1.36 |
Fix Version/s: | 8.0.0 |
Type: | Improvement | Priority: | Major |
Reporter: | AlSt | Assigned To: | Robin Shen |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
Hi,
Git has issues with regularly fetched git repositories. This means that it reports an error an suggests to run git gc to get rid of git garbage. It would be a good idea to do a git gc during the checkout step before doing operations against a local repository clone like fetch, pull, etc. to avoid such issues. So running "git gc" should suffice. The only thing to do before that is to delete the gc.log file if it exists, else it would not work. This would be a nice to have that in the GitRepository directly to not need any weird groovy preexecute action which performs that. Thanks Alex |