# bug: Can't clone from "grafted" bundle: fatal: remote did not send all necessary objects

1 messages from 2025-06-23 to 2025-06-23. Participants: Andrey Butirsky.
Thread: https://gitlist.dev/t/63682

## Andrey Butirsky, 2025-06-23 15:23

Subject: bug: Can't clone from "grafted" bundle: fatal: remote did not send all necessary objects
Message-ID: <ce1ad61e-f0cd-44d9-9b0c-4b7a5f941fd9@gmail.com>
URL: https://gitlist.dev/e/ce1ad61e-f0cd-44d9-9b0c-4b7a5f941fd9%40gmail.com

```
Hi,

while I can clone from the "grafted" repo directly, I can't do the same 
if I make a bundle first and try to clone from it.

To reproduce:

- prepare some shallow source repo, e.g.:
$ git clone --depth=1 <repo_URL> <repo>

- make sure it can be cloned fine directly:
$ git clone <repo> test_clone

- now create a bundle from the shallow source repo:
cd <repo>
$ git bundle create test_bundle --all

- try to clone the bundle - the error is produced:
$ git clone test_bundle bundle_clone_test
Receiving objects: 100% (183/183), 61.94 KiB | 6.19 MiB/s, done.
Resolving deltas: 100% (91/91), done.
error: Could not read 3541f044006078ac02f6a587ae87f682359efec0
fatal: Failed to traverse parents of commit 
47f57af427b311c96e964b7ffc0500dc0aa64c4f
fatal: remote did not send all necessary objects

The commit 47f57af427b311c96e964b7ffc0500dc0aa64c4f is grafted.


```
