Closed
Description
What happened:
When running release-notes
with start-rev
and end-rev
provided, it was observed that the wrong repo was being cloned/updated. The tooling was using kubernetes/kubernetes instead kubernetes-sigs/promo-tools. This appears to be happening because there is an existing repo clone in the expected temp directory, however it's for another repository (i.e. k/k). The cloneOrOpenRepo
function in release-sdk doesn't ensure that the repoPath given is one of the remotes.
What you expected to happen:
release-notes either provides a descriptive error and directions to clean up the temp dir or it clones to a new temp dir.
How to reproduce it (as minimally and precisely as possible):
Run 'release-notes' with no temp directory on one project. Then run it again on a second project (i.e. it would have a different repo path).
Anything else we need to know?:
Environment:
- Cloud provider or hardware configuration:
- OS (e.g:
cat /etc/os-release
): - Kernel (e.g.
uname -a
): - Others: