Re: [BUG] git-clone fails due to GnuTLS recv error (-9), then deletes entire local repo
- From
Tay Ray Chuan <rctay89@gmail.com>
- Date
- Apr 15, 2013, 15:58 UTC
- Message-ID
- <CALUzUxr5i6sRywbKB=eFEcrpHdVtduMQFKaXwMX-WdcWAa6g2A@mail.gmail.com>
- In-Reply-To
- <510B8416.7010802@iam.tj>
On Fri, Feb 1, 2013 at 5:00 PM, TJ <git@iam.tj> wrote:
Show 11 quoted lines
> Using Ubuntu Precise 12.04 with git version (1.8.0.3) I discovered a bug whereby git-clone deletes the repository > it has just created if there is a GnuTLS error after the final transfer. > > I switched to building and using the current git head (1.8.1.2.433.g070c57d.dirty) and found the same issue is still present. > > There are two problems here: > > 1. At the end of the transfer "GnuTLS recv error (-9): A TLS packet with unexpected length was received" > 2. git-clone goes on to resolve deltas *then* deletes the entire repository > > This is reported as Ubuntu bug #1111882 at https://bugs.launchpad.net/ubuntu/+bug/1111882
I believe this is due to git not supporting resumable clones, and that the repo is in an unusable state.
It's listed as a 2011 GSoC idea [1] but has since been taken off because it's considered a "hard" problem (can't come with a email thread right off the top of my head).
[1] https://git.wiki.kernel.org/index.php/SoC2011Ideas#Resumable_clone
-- Cheers, Ray Chuan