Project

General

Profile

action #164889

Updated by tinita 14 days ago

## Motivation 

 See #162125  

 In fetchneedles we cleanup the git directory by running [`git gc`](https://github.com/os-autoinst/openQA/blob/master/script/fetchneedles#L78). We should do that as well for our new CASEDIR/NEEDLES_DIR git_auto_clone feature. 

 Also we should check if the directory is clean before doing any updates. 


 ## Acceptance Criteria Goals 
 * **AC1:** git_auto_clone does not mess with a dirty git checkout 
 * **AC2:** The git checkout is regularly cleaned to not use too much space 

 ## Suggestions 


 ## Out of scope 
 * Doing any kind of initial checkout if git working copies do not exist yet

Back