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

fatal: --unshallow on a complete repository does not make sense #74

Open
oynek opened this issue Mar 8, 2023 · 4 comments
Open

fatal: --unshallow on a complete repository does not make sense #74

oynek opened this issue Mar 8, 2023 · 4 comments

Comments

@oynek
Copy link

oynek commented Mar 8, 2023

When using this GitHub Action, I encounter the following error message:

🐶 Get changed files
  fatal: --unshallow on a complete repository does not make sense

I suspect the error here, but do not understand why this occurs.

Maybe this condition could help solving this:

if $(git rev-parse --is-shallow-repository); then
    ... repository is shallow ...
fi

Source: StackOverflow


My workflow file:

    steps:
      - name: Checkout repo
        uses: actions/checkout@v3

      - name: Lint added and modified .sql files
        uses: yu-iskw/action-sqlfluff@v3
        id: lint-sql
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review
          sqlfluff_version: "1.4.5"
          sqlfluff_command: "lint"
          config: "${{ github.workspace }}/.sqlfluff"
          paths: "${{ github.workspace }}/models"
          extra_requirements_txt: "${{ github.workspace }}/.github/config/requirements.txt"
@yu-iskw
Copy link
Owner

yu-iskw commented Mar 9, 2023

I am assuming that's because your repository is large. I am thinking what happens, if we use git fetch --prune --depth 10000 --no-tags instead of git fetch --prune --unshallow --no-tags.

@MarkEnverus
Copy link

@yu-iskw is there a solution to this? i'm facing the same error?

@aballiet
Copy link

aballiet commented Dec 4, 2023

@yu-iskw, can you merge the fix you offered ?
It solves the problem 👍

@aballiet
Copy link

aballiet commented May 13, 2024

up @yu-iskw ? I need to maintain a fork of your repo to have it 🙏

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

4 participants