From: Bagas Sanjaya Date: Sun, 16 May 2021 13:09:56 GMT Subject: git repack on shallow clone of large repo (linux kernel) hangs at "Enumerating objects" Message-ID: Hi, I have a shallow clone of linux-stable repo [1] on my computer. Now I'm trying to repack with `git repack -A -d`. Before repacking, here is the object counts on my clone (`git count-objects -v`): > count: 0 > size: 0 > in-pack: 3162206 > packs: 17 > size-pack: 3120393 > prune-packable: 0 > garbage: 0 > size-garbage: 0 And I have 41496 commits (only on master). And here are relevant config used: > pack.deltacachesize=120M > pack.windowmemory=400M > pack.packsizelimit=650M > pack.autopacklimit=0 When I trigger repack operation, I expected that all objects on 17 packs are consolidated into several 650M-sized packs. However, in my case, repacking was hang at "Enumerating objects" stage, that is I stuck at: "Eumerating objects: 902036" I also try to reproduce the issue with other repo, such as with local copy of GCC repo on my computer [2] using similar config, and the repack succeed without any errors. Am I missing something? [1]: https://github.com/gregkh/linux [2]: https://github.com/gcc-mirror/gcc -- An old man doll... just what I always wanted! - Clara