RepoSense icon indicating copy to clipboard operation
RepoSense copied to clipboard

[#1813] Fix git clone exception when cloning lfs files

Open lawwm opened this issue 2 years ago • 4 comments

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. image

lawwm avatar Aug 17 '22 13:08 lawwm

CI tests failed because fatal: unable to read config file '/home/runner/.gitconfig': No such file or directory. Will be trying to solve it.

lawwm avatar Aug 18 '22 02:08 lawwm

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

github-actions[bot] avatar Aug 18 '22 02:08 github-actions[bot]

I've fixed the failing CI tests.

lawwm avatar Sep 04 '22 13:09 lawwm

To add on, the PR can be renamed as [#1813] Fix git clone exception when cloning lfs files

yhtMinceraft1010X avatar Sep 05 '22 10:09 yhtMinceraft1010X

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

github-actions[bot] avatar Oct 16 '22 07:10 github-actions[bot]