openSUSE / openSUSE-release-tools

Tools to aid in staging and release work for openSUSE/SUSE
GNU General Public License v2.0
59 stars 92 forks source link

version_calculate: chdir to the osclib dir #3006

Closed dcermak closed 11 months ago

dcermak commented 11 months ago

version_calculate() calls describe in the current working dir, but that fails in git repositories without any commits in them. Actually we should be calling this in the osc-release-tools repository instead, hence fixing this issue.

codecov-commenter commented 11 months ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% :tada:

Comparison is base (65a86bd) 28.45% compared to head (92425ab) 28.48%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3006 +/- ## ========================================== + Coverage 28.45% 28.48% +0.02% ========================================== Files 85 85 Lines 14716 14717 +1 ========================================== + Hits 4188 4192 +4 + Misses 10528 10525 -3 ``` | [Files Changed](https://app.codecov.io/gh/openSUSE/openSUSE-release-tools/pull/3006?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openSUSE) | Coverage Δ | | |---|---|---| | [osclib/common.py](https://app.codecov.io/gh/openSUSE/openSUSE-release-tools/pull/3006?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openSUSE#diff-b3NjbGliL2NvbW1vbi5weQ==) | `75.00% <100.00%> (+2.27%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/openSUSE/openSUSE-release-tools/pull/3006/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openSUSE)

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