Re: Clone from shallow bundle bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 1, 2015 at 4:10 AM, Phillip Susi <psusi@xxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I made a shallow clone of my repo, then used git bundle create to pack
> it all into a bundle file, then cloned from that bundle.  The initial
> shallow clone has a .git/shallow file that identifies it as a shallow
> clone ( and I guess keeps things from complaining about the missing
> history ), but the the repo cloned from the bundle does not,

You made me worry a bit. We have checks in clone and fetch to make
sure the result is "good" (i.e. gitk should not complain, clone/fetch
should report it instead). Unfortunately I tested and it seemed to
work as expected (i.e. clone fails)

$ LANG=C ./git clone ./shallow.bundle  shallow2
Cloning into 'shallow2'...
Receiving objects: 100% (2813/2813), 5.33 MiB | 0 bytes/s, done.
Resolving deltas: 100% (250/250), done.
Checking connectivity... error: Could not read
50a3ba22454e2989424d5de489de9c0f68fed5ec
fatal: Failed to traverse parents of commit
c73a8a63134734ddf7077d09355a10a0077ed2ca
fatal: remote did not send all necessary objects

> so gitk
> run in that clone complains about not being able to find the objects
> referenced by the oldest commit in the repo.
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]