* git fetch from additional remote fails with a treeless clone
@ 2024-05-30 17:37 Christoph Reiter
0 siblings, 0 replies; only message in thread
From: Christoph Reiter @ 2024-05-30 17:37 UTC (permalink / raw)
To: git
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your
issue)
(I tried to come up with dummy repos with a similar relationship but
failed to reproduce the issue there, and --filter doesn't work for
local repos, so I gave up and I'm just using the repos where the issue
occured instead)
This does a treeless clone of an outdated fork, then adds the upstream
and fetches from it.
rm -Rf MINGW-packages
git clone --filter=tree:0 https://github.com/lazka/MINGW-packages
cd MINGW-packages
git remote add upstream https://github.com/msys2/MINGW-packages
git fetch upstream
What did you expect to happen? (Expected behavior)
fetching in the treeless clone works as with a non-treeless clone
What happened instead? (Actual behavior)
fatal: bad revision 'e346057a67cffe54493cf87e24498229b8a370cc'
error: https://github.com/lazka/MINGW-packages did not send all
necessary objects
fatal: could not fetch e346057a67cffe54493cf87e24498229b8a370cc from
promisor remote
fatal: fetch-pack: invalid index-pack output
What's different between what you expected and what actually happened?
The treeless clone does not work as the non-treeless clone when
fetching.
Anything else you want to add:
Also reproduced on cygwin git 2.45.1
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.43.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20
00:40:06 UTC 2024 x86_64
compiler info: gnuc: 13.2
libc info: glibc: 2.39
$SHELL (typically, interactive shell): /bin/zsh
[Enabled Hooks]
not run from a git repository - no hooks to show
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-30 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30 17:37 git fetch from additional remote fails with a treeless clone Christoph Reiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).