RepoSense
RepoSense copied to clipboard
[#1813] Fix git clone exception when cloning lfs files
Fixes #1813
Proposed commit message
Fix exception that occurs while generating reports for
repositories using git-lfs
Set git configuration to skip retrieving lfs files, and
reset to user's original configuration after clone.
Other information
Explanation of why exception occurs is in #1813.
Full git clone
will now always be configured to skip retrieving lfs files.
However, since that will overwrite the user's original git-lfs configuration, the user's original configuration is saved
before configuration and reapplied after repos have been analyzed.
Since git-lfs files are not retrieved, only pointer files left behind.
CI tests failed because fatal: unable to read config file '/home/runner/.gitconfig': No such file or directory
. Will be trying to solve it.
The following links are for previewing this pull request:
- Dashboard Preview: https://dashboard-1826-pr-reposense-reposense.surge.sh
- Docs Preview: https://docs-1826-pr-reposense-reposense.surge.sh
I've fixed the failing CI tests.
To add on, the PR can be renamed as [#1813] Fix git clone exception when cloning lfs files
The following links are for previewing this pull request:
- Dashboard Preview: https://dashboard-1826-pr-reposense-reposense.surge.sh
- Docs Preview: https://docs-1826-pr-reposense-reposense.surge.sh