Super-linter: Failed to get Diff

Created on 23 Mar 2021  路  3Comments  路  Source: github/super-linter

Describe the bug

The SuperLinter checks started to fail since yesterday with a message of the following kind:

fatal: Invalid symmetric difference expression master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d
2021-03-23 15:32:48 [INFO]   Failed to get Diff with:[git -C /github/workspace diff --name-only master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d --diff-filter=d]

Examples from different repositories:

Expected behavior

The check does not fail unexpectedly.

Steps to Reproduce






Examples from different repositories:

Logs

fatal: Invalid symmetric difference expression master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d
2021-03-23 15:32:48 [INFO]   Failed to get Diff with:[git -C /github/workspace diff --name-only master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d --diff-filter=d]

Additional context

The repositories use the latest version 3. I tried with v3.15.3, it fails with the same fatal.

bug

Most helpful comment

I resolved the issue by adding fetch-depth: 0 to the workflow like in the example.

All 3 comments

I resolved the issue by adding fetch-depth: 0 to the workflow like in the example.

I resolved the issue by adding fetch-depth: 0 to the workflow like in the example.

This has fixed linting issues in our repository too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lechen26 picture lechen26  路  5Comments

brunomartinspro picture brunomartinspro  路  4Comments

dshevtsov picture dshevtsov  路  4Comments

DawidJanczak picture DawidJanczak  路  5Comments

karfau picture karfau  路  4Comments