action #165066
Updated by tinita 4 months ago
## Motivation
See #162125
## Acceptance Criteria
* **AC1:** git_auto_clone does not mess with a dirty git checkout
## Suggestions
* Use git diff-index to lookup if there is dirty changes in the local copy of the repo
* https://github.com/os-autoinst/openQA/pull/5808/files#diff-8d9512b891ef3e8199993cfe58fe429b5f863c49a245bf03cf59315969ff46deR92
`git -C $path diff-index HEAD --exit-code`
* Watch out for #164886 touching the same code