Closed anmarchenko closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.91%. Comparing base (
d56ec05
) to head (c5ac583
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What does this PR do? Our current git unshallowing command is optimised, but it might fail under a different circumstances.
For example
git rev-parse HEAD
fails if the local HEAD is a commit that has not been pushed to the remote.We will add the following fallbacks:
$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream})
- we try this first, but it might fail too if the CI is working on a detached HEAD or maybe branch tracking hasn’t been set upMotivation Improve git unshallowing resilience
How to test the change? Unit test is provided