{"thread":{"id":"61567","subject":"git fetch from additional remote fails with a treeless clone","startedAt":"2024-05-30T17:38:07Z","lastAt":"2024-05-30T17:38:07Z","messageCount":1,"participants":["Christoph Reiter"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"495967","messageId":"51363037334634e27580664f104886d5eaa9b4fb.camel@gmail.com","threadId":"61567","inReplyTo":null,"subject":"git fetch from additional remote fails with a treeless clone","fromName":"Christoph Reiter","fromEmail":"reiter.christoph@gmail.com","sentAt":"2024-05-30T17:37:44Z","receivedAt":"2024-05-30T17:38:07Z","isPatch":false,"sender":{"key":"reiter.christoph@gmail.com","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your\nissue)\n\n(I tried to come up with dummy repos with a similar relationship but\nfailed to reproduce the issue there, and --filter doesn't work for\nlocal repos, so I gave up and I'm just using the repos where the issue\noccured instead)\n\nThis does a treeless clone of an outdated fork, then adds the upstream\nand fetches from it.\n\nrm -Rf MINGW-packages\ngit clone --filter=tree:0 https://github.com/lazka/MINGW-packages\ncd MINGW-packages\ngit remote add upstream https://github.com/msys2/MINGW-packages\ngit fetch upstream\n\nWhat did you expect to happen? (Expected behavior)\n\nfetching in the treeless clone works as with a non-treeless clone\n\nWhat happened instead? (Actual behavior)\n\nfatal: bad revision 'e346057a67cffe54493cf87e24498229b8a370cc'\nerror: https://github.com/lazka/MINGW-packages did not send all\nnecessary objects\n\nfatal: could not fetch e346057a67cffe54493cf87e24498229b8a370cc from\npromisor remote\nfatal: fetch-pack: invalid index-pack output\n\nWhat's different between what you expected and what actually happened?\n\nThe treeless clone does not work as the non-treeless clone when\nfetching.\n\nAnything else you want to add:\n\nAlso reproduced on cygwin git 2.45.1\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n[System Info]\ngit version:\ngit version 2.43.0\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20\n00:40:06 UTC 2024 x86_64\ncompiler info: gnuc: 13.2\nlibc info: glibc: 2.39\n$SHELL (typically, interactive shell): /bin/zsh\n\n[Enabled Hooks]\nnot run from a git repository - no hooks to show\n\n"}]}