Open SteBaum opened 2 months ago
Yes sorry I should have copied the error I had. I had this error when I was executing TDP-lib in a container with a different user as on my host where tdp_vars were located and attached to the container through a volume. It could not access any git repository in this case. it had nothing to do with the code in tdp-lib and all git repositories were affected but in the case that only one would be affected we would not know which one it is, so this error message tells us precisely which one is concerned.
Then I'm not sure that this PR is that useful. We never encountered this type of error and even if it occurs, your PR it only covering the is_clean
method.
Furthermore, we already know to which repository the error comes from as the method is part of the Repository
class.
Which issue(s) this PR fixes
Fixes None
Additional comments
If an error occurs with the
is_clean
function of theGitRepository
class, the concerned repository is printed in the trace.Agreements