Forum Discussion

Dan_Gawarecki's avatar
Dan_Gawarecki
Occasional Contributor
16 days ago

Error when clone GitHub repo with LFS extension

Cloning a GitHub repo having LFS extension fails with with following content in the dialog

Failed to clone repository

"Cloning into 'C:\....target-path-for-report' ...
git-lfs filter-process:  line 1: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning:  Clone succeeded but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'"

 

I can clone the repo without issue using GitHut Desktop, but do not want to proceed without knowing that TestComplete, with TortioseGit,will work fine with a repo having the Git Large File Support (LFS) extension.

Looked through the TestComplete documentation but no joy.  Suggestions? Advice?

 

3 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Looking at the error message, it seems like it can't find the command git-lfs, as it shows "git-lfs: command not found".

    Check your path settings for TortioseGit, and also check to see if git-lfs file exists.

  • Dan_Gawarecki's avatar
    Dan_Gawarecki
    Occasional Contributor

    Before going down the technical path you suggest, I first want the higher level question answered; that being, will "TestComplete, with TortioseGit, will work fine with a repo having the Git Large File Support (LFS) extension"? 

    That there is no mention of LFS in the TestComplete documentation makes me wary and cautious about starting on a path that may be a dead-end.  This is especially true given the TortioiseGit does support LFS as evidenced by this article:  

    https://tortoisegit.org/docs/tortoisegit/tgit-dug-lfslocking.html

    • rraghvani's avatar
      rraghvani
      Icon for Champion Level 3 rankChampion Level 3

      The TortoiseGit Client bundled with TestComplete should support Git LFS, provided that Git LFS is installed and properly configured on the system. Since TortoiseGit is a third-party tool, TestComplete documentation typically only covers its own functionality and limitations of bundled components, but not all capabilities.

      You should be able to quickly test to see if TortoiseGit Client LFS works.