git clone with " --filter=** " option is not working in gerrit.

358 views
Skip to first unread message

Sachin S

unread,
Jan 16, 2020, 12:05:17 PM1/16/20
to Repo and Gerrit Discussion
Hi Friends,

I need to use git clone filter option, since my repo size very big, But it is failing with the below warning.

git clone --filter="blob:limit=1m" "ssh://sa...@gerrit-sta.com:29418/test/sactest"
Cloning into 'sactest'...
warning: filtering not recognized by server, ignoring
remote: Counting objects: 5, done
remote: Total 593 (delta 0), reused 593 (delta 0)
Receiving objects: 100% (593/593), 74.76 KiB | 12.46 MiB/s, done.
Resolving deltas: 100% (230/230), done.

I have configured my gerrit server with below option for both local and global. but it is not working 

git config --local uploadpack.allowfilter 1
git config --local uploadpack.allowanysha1inwant 1


git config --global uploadpack.allowfilter 1
git config --global uploadpack.allowanysha1inwant 1


How to solve this, is this need to be configured in jgit.conf  ?  or is there any other methods ?

Regards,
Sachin 


Longping Tang

unread,
Aug 2, 2022, 6:28:49 PM8/2/22
to Repo and Gerrit Discussion
Was this issue resolved later?
Reply all
Reply to author
Forward
0 new messages