You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever attempt to fetch commit that are neither tagged nor head of branch, the following error comes out.
error: Server does not allow request for unadvertised object <hash_number>
Fetched in submodule path '<path_to_submodule>', but it did not contain <hash_number>. Direct fetching of that commit failed.
With GIT_TRACE_PACKET=1 GIT_TRACE=2 git submodule update --init --depth 1, we can trace the packet:
On GitLab Web, you can find allow-reachable-sha1-in-want:
On Gitlab Omnibus, it is configurable by setting in /etc/gitlab/gitlab.rb but that file not exist in our Docker, nor relevant variable (uploadpack, allowReachableSHA1InWant) exist at all (correct me if I oversight it).
Is there a way to turn that option on by default in our case?
The text was updated successfully, but these errors were encountered:
Problem Statement
Whenever attempt to fetch commit that are neither tagged nor head of branch, the following error comes out.
Step to Reproduce
git clone --depth 1 <any_repo_with_submodule_with_hash_neither_head_of_branch_nor_tagged>
cd <repo_name> && git submodule update --init
Attempted solution
With
GIT_TRACE_PACKET=1 GIT_TRACE=2 git submodule update --init --depth 1
, we can trace the packet:On GitLab Web, you can find
allow-reachable-sha1-in-want
:But this is not on my case (missing
allow-tip-sha1-in-want
andallow-reachable-sha1-in-want
):On Gitlab Omnibus, it is configurable by setting in
/etc/gitlab/gitlab.rb
but that file not exist in our Docker, nor relevant variable (uploadpack
,allowReachableSHA1InWant
) exist at all (correct me if I oversight it).Is there a way to turn that option on by default in our case?
The text was updated successfully, but these errors were encountered: