Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git fetch don't work as expect during the calculation of the release #113

Open
diegolagospagopa opened this issue Jun 3, 2022 · 0 comments

Comments

@diegolagospagopa
Copy link

In the file cr.sh you use the function lookup_latest_tag() to download all the tags and later on, calculate the next release to create.

lookup_latest_tag() {
    git fetch --tags > /dev/null 2>&1

    if ! git describe --tags --abbrev=0 2> /dev/null; then
        git rev-list --max-parents=0 --first-parent HEAD
    fi
}

Unfortunately git fetch --tags don't work as expected and miss the last tags.
To avoid this problem i put a git pull --tags to force this process. And all work as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant