action #164889
Updated by livdywan 8 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 * **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 * Use git gc to trigger cleanup of the local copy of the repo * Wait for #164886