Properly passing configuration to git client
In the partial clone demo and demo on 2024 May 15, we have to explicitly pass some parameters to doing a git clone.
For example:
git clone \
-c remote.gsremote.url="gs::/Users/peijian/Gitlab/gitlab-development-kit/repositories/@cluster/repositories/c8/37/57" \
-c remote.gsremote.fetch='+refs/heads/*:refs/remotes/gsremote/*' \
-c remote.gsremote.promisor=true --no-local \
--filter=blob:limit="$OFFLOADING_POC_FILTER_LIMIT" \ ssh://git@127.0.0.1:2222/gitlab-org/large-blob-gamer.git git-client-gstest-with-gdk
We need to pass
- remote.gsremote.url
$OFFLOADING_POC_FILTER_LIMIT
- GCP bucket name and bucket path (used by git remote helper)
Ideally, if the user configured it through GitLab first, we some how can pass it to the client without exposing gitaly internal information.
Proposed solution(s)
No proposal yet. Bundle URI many be a good reference to see how the configuration is passed.
Actions:
-
investigate what parameters are needed -
investigate how to pass the parameters (Bundle URI many be a good reference to see how the configuration is passed.)
References:
Edited by Eric Ju