Comments (5)
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.
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.
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.
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.
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)
- Connections to the Sorting Hat database are not closed HOT 1
- Cannot index gitlab issues from gitlab-com project HOT 5
- Getting all projects from enterprise Gitlab HOT 5
- Vulnerability CVE-2021-45960 - CVE-2019-19814 HOT 1
- [utils] Can't find `menu.yaml` and `aliases.json` in `/sirmordred` HOT 2
- [doc] Error feeding raw from cocom while running `micro.py` HOT 6
- custom port mariadb for grimorelabs HOT 1
- Only run one data source when the database is not created by Mordred HOT 7
- [requirements.txt] No matching distribution found for grimoireelk HOT 2
- [utils] Turn on the help arg option in `micro.py` HOT 3
- SirMordred did not install with Python 3.9 (but did with Python 3.8) HOT 5
- sirmordred/micro.py execution halts with connection issue HOT 5
- Is it possible to add more than a label to the repositories HOT 1
- Add prefix to aliases entries
- Jira integration appears to be non-functional HOT 2
- "Limit of total fields [1000] in index [github2-pull_raw] has been exceeded" error for "github2:pull"
- grimoirelab dashboard no result found error
- Read secrets from another file
- Add devcontainer to use codespaces as dev environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grimoirelab-sirmordred.