Coder Social home page Coder Social logo

Comments (5)

sduenas avatar sduenas commented on August 14, 2024

We don't have any kind of configuration for doing that. I'm not sure what the status of LFS is on git project. According to some articles I've been reading, git lfs clone and git clone are the same thing now. To avoid cloning big files there's something called partial clone. Maybe you can try to modify the code and see if it works. On this GitLab doc and on this GitHub article you can find more info about how to run this.

The piece of code you will have to modify is this one

I can try these by myself if you give me the details about how to clone that repository.

from grimoirelab-sirmordred.

g0tbread avatar g0tbread commented on August 14, 2024

Thanks for your reply @sduenas : - )
The command I want to be executed is : GIT_LFS_SKIP_SMUDGE=1 git clone SERVER-REPOSITORY
I will give a try to change piece of code to see if it is works:
cmd = [‘GIT_LFS_SKIP_SMUDGE=1’, 'git', 'clone', '--bare', uri, dirpath]

from grimoirelab-sirmordred.

sduenas avatar sduenas commented on August 14, 2024

The GIT_LFS_SKIP_SMUDGE env variable should be defined in here: https://github.com/chaoss/grimoirelab-perceval/blob/f7cec4254eac3e10c4c75d54b9d5c4d6d88ccd6e/perceval/backends/core/git.py#L839

from grimoirelab-sirmordred.

g0tbread avatar g0tbread commented on August 14, 2024

Hi,@sduenas
I tried to add the GIT_LFS_SKIP_SMUDGE configuration at env, but from the execution of micro.py, it did not take effect
The following is the file location information I modified:
vim /usr/local/lib/python3.8/site-packages/perceval/backends/core/git.py
env = {
'LANG': 'C',
'GIT_LFS_SKIP_SMUDGE': '1',
'HOME': os.getenv('HOME', '')
}

Below is error output info:
perceval.errors.RepositoryError: git command - Cloning into bare repository '/home/bitergia/.perceval/repositories/https://user:[email protected]/abc/efg-git'...
warning: redirecting to https://www.gitlab.com/abc/efg.git/
POST git-upload-pack (164 bytes)
POST git-upload-pack (gzip 1452 to 749 bytes)
remote: Enumerating objects: 20313, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (33/33), done.
error: 5123 bytes of body are still expectedGiB | 11.02 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed

from grimoirelab-sirmordred.

g0tbread avatar g0tbread commented on August 14, 2024

The GIT_LFS_SKIP_SMUDGE env variable should be defined in here: https://github.com/chaoss/grimoirelab-perceval/blob/f7cec4254eac3e10c4c75d54b9d5c4d6d88ccd6e/perceval/backends/core/git.py#L839

Hi,@sduenas
I fianlly found the correct configuration place:
1.First docker exec into mordred container
2.Add gitconfig for bitergia (/home/bitergia/.gitconfig),Below is the configuration:
...skip...
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge --skip
process = git-lfs filter-process --skip
checkout =
required = false
[lfs]
fetchexclude = *

from grimoirelab-sirmordred.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.