Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git shallow clone - error: Server does not allow request for unadvertised object - git.sv.gnu.org - git.savannah.gnu.org #98

Open
milahu opened this issue Dec 21, 2022 · 0 comments

Comments

@milahu
Copy link

milahu commented Dec 21, 2022

git shallow clone fails at

error: Server does not allow request for unadvertised object 66fdaea3cfb4e758212c1891913e9a59441d49af

this is slightly annoying, because i have to fetch all the git history (deep clone)

see also Allow fetch of specific commit hash from git://git.sv.gnu.org

git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/akimd/bison

Cloning into 'bison'...
remote: Enumerating objects: 376, done.
remote: Counting objects: 100% (376/376), done.
remote: Compressing objects: 100% (342/342), done.
remote: Total 376 (delta 87), reused 91 (delta 15), pack-reused 0
Receiving objects: 100% (376/376), 1.34 MiB | 2.57 MiB/s, done.
Resolving deltas: 100% (87/87), done.
Submodule 'gnulib' (git://git.savannah.gnu.org/gnulib.git) registered for path 'gnulib'
Submodule 'submodules/autoconf' (git://git.sv.gnu.org/autoconf.git) registered for path 'submodules/autoconf'
Cloning into '/home/user/src/bison/bison/gnulib'...
remote: Counting objects: 10725, done.        
remote: Compressing objects: 100% (9641/9641), done.        
remote: Total 10725 (delta 5376), reused 2358 (delta 1066)        
Receiving objects: 100% (10725/10725), 9.69 MiB | 3.29 MiB/s, done.
Resolving deltas: 100% (5376/5376), done.
Cloning into '/home/user/src/bison/bison/submodules/autoconf'...
remote: Counting objects: 161, done.        
remote: Compressing objects: 100% (155/155), done.        
remote: Total 161 (delta 13), reused 64 (delta 4)        B/s
Receiving objects: 100% (161/161), 1.50 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (13/13), done.
remote: Total 0 (delta 0), reused 0 (delta 0)
remote: Counting objects: 1041, done.
remote: Compressing objects: 100% (986/986), done.
remote: Total 1041 (delta 1027), reused 60 (delta 55)
Receiving objects: 100% (1041/1041), 681.60 KiB | 1.05 MiB/s, done.
Resolving deltas: 100% (1027/1027), completed with 970 local objects.
From git://git.savannah.gnu.org/gnulib
 * branch            71b603702b8cf7977dedd5f6b71ea0ffc1669894 -> FETCH_HEAD
Submodule path 'gnulib': checked out '71b603702b8cf7977dedd5f6b71ea0ffc1669894'
remote: Total 0 (delta 0), reused 0 (delta 0)
error: Server does not allow request for unadvertised object 66fdaea3cfb4e758212c1891913e9a59441d49af
fatal: Fetched in submodule path 'submodules/autoconf', but it did not contain 66fdaea3cfb4e758212c1891913e9a59441d49af. Direct fetching of that commit failed.

git.sv.gnu.org

cd $(mktemp -d)
git init 
git remote add asdf git://git.sv.gnu.org/autoconf.git
git fetch asdf 66fdaea3cfb4e758212c1891913e9a59441d49af 
# error: Server does not allow request for unadvertised object 66fdaea3cfb4e758212c1891913e9a59441d49af

git.savannah.gnu.org

cd $(mktemp -d)
git init 
git remote add asdf git://git.savannah.gnu.org/autoconf.git
git fetch asdf 66fdaea3cfb4e758212c1891913e9a59441d49af 
# error: Server does not allow request for unadvertised object 66fdaea3cfb4e758212c1891913e9a59441d49af

workaround

use the github mirror https://github.com/autotools-mirror/autoconf

git submodule set-url submodules/autoconf https://github.com/autotools-mirror/autoconf
git submodule update --init --recursive --depth 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant