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

clarify fetch-depth: 0 behavior in the documentation #1499

Open
Loki-Afro opened this issue Sep 27, 2023 · 0 comments
Open

clarify fetch-depth: 0 behavior in the documentation #1499

Loki-Afro opened this issue Sep 27, 2023 · 0 comments

Comments

@Loki-Afro
Copy link

Loki-Afro commented Sep 27, 2023

clarify fetch-depth: 0 behavior in the documentation.

it is unclear if it will also provide local branch information or not.
if it does not provide local branch information the following code does not work:

          if git rev-parse --quiet --verify ${{ env.git_ref_name }} > /dev/null; then
            echo "branch_exists=true" >> $GITHUB_ENV
          else
            echo "branch_exists=false" >> $GITHUB_ENV
          fi

fetch-depth: 0 reads like --mirror to me without looking into the code.

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

3 participants
@Loki-Afro and others