lint/lib/functions
Bert Roos ef76367358
Issue hint when failing to switch back to branch (#4107)
* Issue hint when failing to switch back to branch

Switching back to the branch fails with the below error on a shallow checkout:

2023-04-18 21:34:51 [ERROR]   Failed to switch back to branch!
2023-04-18 21:34:51 [FATAL]   [fatal: reference is not a tree: 3afa21b5f9bef8e81396e3572a598d089e710b96]

With this change, it will look as follows:

2023-04-18 21:34:51 [ERROR]   Failed to switch back to branch!
2023-04-18 21:34:51 [INFO]   Check that you have the full git history, the checkout is not shallow, etc
2023-04-18 21:34:51 [INFO]  See https://github.com/github/super-linter#example-connecting-github-action-workflow
2023-04-18 21:34:51 [FATAL]   [fatal: reference is not a tree: 3afa21b5f9bef8e81396e3572a598d089e710b96]

* Update lib/functions/buildFileList.sh

---------

Co-authored-by: Philip Mallegol-Hansen <philip@mallegolhansen.com>
2023-05-23 00:30:16 +00:00
..
buildFileList.sh Issue hint when failing to switch back to branch (#4107) 2023-05-23 00:30:16 +00:00
detectFiles.sh #3501 edit code to debug from review 2023-04-10 19:29:18 -04:00
linterRules.sh Fix secondary rules extension (#3136) 2022-07-13 13:20:10 -05:00
linterVersions.sh Specify version flag for kubeconform 2023-01-16 21:14:13 -05:00
log.sh adding fixes (#1516) 2021-05-04 11:33:21 -05:00
possum.sh break out: (#990) 2020-11-12 11:27:34 -06:00
setupSSH.sh feat: add SSH key support (#2454) 2022-02-09 15:24:57 -06:00
updateSSL.sh Certs (#1470) 2021-04-26 09:00:42 -05:00
validation.sh Ignore files that are ignored by Git (#1185) 2021-02-18 12:15:50 -06:00
worker.sh Validate if we the test suite runs both good and bad tests (#3811) 2023-01-11 17:24:48 +01:00