Search code examples
gitbitbucketgit-lfs

"Error parsing URL" when cloning repository using GIT LFS


I am trying to clone a GIT repository from Bitbucket which apparently uses GIT LFS:

git clone [email protected]:companyname/repository-name/

While cloning the repository partially works, I get the following error:

Error parsing URL "[email protected]:companyname/repository-name.git/info/lfs": parse [email protected]:companyname/repository-name.git/info/lfs: first path segment in URL cannot contain colonError parsing URL "[email protected]:companyname/repository-name.git/info/lfs": parse [email protected]:companyname/repository-name.git/info/lfs: first path segment in URL cannot contain colonFiltering contenFiltering content: 100% (3/3), 49.97 MiB | 6.59 MiB/s, done.

GIT LFS is installed:

$ git-lfs.exe --version
git-lfs/2.9.0 (GitHub; windows amd64; go 1.12.7; git 8ab05aa7)

I am using GIT 2.24.0 on Windows:

$ git --version
git version 2.24.0.windows.2

Am I doing something wrong? Can I ignore this? How can I fix this error? Is this even a GIT LFS error (or some custom script failing that I don't know about)?


Solution

  • URL pattern should start with either "ssh/http" and should have "/" instead of ":" as -

    ssh://git@git.<organisation>/<project>/<repo>.git