diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c7cf58f..751d8de 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,4 +10,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1acd4b..6a34193 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: committed name: committed on current branch commits stages: [commit] - args: [origin/main..HEAD] + args: [remotes/origin/main..HEAD] pass_filenames: false - repo: https://github.com/doublify/pre-commit-rust rev: v1.0