CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 4 forks source link

Check if repository_path is already initialized #287

Closed SeanBryan51 closed 6 months ago

SeanBryan51 commented 6 months ago

Currently, the GitRepo and SVNRepo objects incorrectly modify the path to the source repository if the path points to a directory initialised by either git or svn. This change adds checks on the repository path so that the correct behaviour applies in this case.

Fixes #243

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 69.97%. Comparing base (59910ed) to head (09272ae). Report is 5 commits behind head on main.

Files Patch % Lines
src/benchcab/utils/repo.py 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #287 +/- ## ========================================== - Coverage 72.81% 69.97% -2.84% ========================================== Files 18 18 Lines 982 986 +4 ========================================== - Hits 715 690 -25 - Misses 267 296 +29 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.