Re: Let's stop using CVS for debian.org website
Boyuan Yang <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www |
|---|---|
| Organization | USTC |
| Message-ID | <2077464.vNrmgA3Dqd@hosiet-tp> |
在 2016年11月24日星期四 SGT 上午9:43:40,Holger Levsen 写道:
> however, cloning using --depth 1 did not work :(
>
> $ git clone --depth 1 https://anonscm.debian.org/cgit/webwml/webwml2git.git
> Cloning into 'webwml2git'...
> fatal: The remote end hung up unexpectedly
> fatal: protocol error: bad pack header
That's interesting. I tried to dig into the problem but yet to find its origin:
* Git shallow clone was quite limited before v1.9. On Alioth we have git
v1.9.1, however.
* Any shallow clone via cgit would fail (e.g. using anonscm.d.o/{cgit,git}/).
* Shallow cloning via SSH (alioth account) would *fail* if the user does not
have write permission into the repository. If the user has write permission
then everything would be OK:
% LC_ALL=C git clone --depth 1 git+ssh://[email protected]:/git/
webwml/webwml2git.git/
Cloning into 'webwml2git'...
fatal: Unable to create temporary file '/srv/git.debian.org/git/webwml/
webwml2git.git/shallow_DrNR7B': Permission denied
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
% LC_ALL=C git clone --depth 1 git+ssh://[email protected]:/git/
collab-maint/shadowsocks-libev.git/
Cloning into 'shadowsocks-libev'...
remote: Counting objects: 124, done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 124 (delta 25), reused 36 (delta 5)
Receiving objects: 100% (124/124), 206.81 KiB | 36.00 KiB/s, done.
Resolving deltas: 100% (25/25), done.
( In the example, I am one of the uploaders of the latter package but I don't
have write permission to webwml).
Really interesting. Seems that shallow cloning would create a temp file inside
the repository. For GitHub they handled it properly, and on Alioth the strict
repo owner limitation made it impossible.
--
Sincerely,
Boyuan Yang
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEBxWNsAe8FiJWLc/BsaNiERUBsx4FAlg2yxcACgkQsaNiERUB sx7tZxAAgpdwP7cNFts9xF3HXbddqu/jPmHv4Z2XWhPpmuXi2KEEmCTVOP0l7PH9 mt0FxoWe9670H2E5m76ZlA7G3S/6KAdyXJ+POv+uy2S+43xZMPfr2+RIoCgf4Rvh 95yRdz4WQ5lI2AiNhDEfdmhZ11JF/d+umT2k7lR3y+rMecjh5EUDrsMBNDmmhYNy ocUBjDEHzTjtWAZC4IWQwDqi9bX6DiCovAyf1Z57c0ra709KjSIvxN1eXh+5oLxI XHHU5r1q4Glpx1/j3ZUlgL3IEmnzWa4AKkSBfwvOpU3gHFnurTxkGbxX9YN3KsvX QEcQ0+FjU3QLa4Z0Pf2neHKnZKHAgK2CyUUEeF84ToSpTUXVmMn0td5zac/GlboI +ax1d2yHiFXNMudwSElBa+8aH5rmyDFabNBOBIC3Kr526IY50XJnBsEQOoMXVgid 48pJ8y3bjlO8gagHzLB5zYvm7ooaPV8BUSuRDH/ZHJLwLho9MHjvZjKEI65b5TT2 5SC/OezieXcqyeKDzaUox2GVbeXGo0v82PZnwglNF537uh7J4iQf07ZMUePSHqYT 97HSkJWYEk9KCr2LZUzZR5tKj5RMh4R4ACiHkoYktG/k8sWRi/WWF24NiN7lg1Gx 0z11bjaHzMQRWrLtnnnEkGPfkyjtTtV+LMayKlrZ+yaHPKVRJiA= =UT7j -----END PGP SIGNATURE-----