git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Reiter <reiter.christoph@gmail.com>
To: git@vger.kernel.org
Subject: git fetch from additional remote fails with a treeless clone
Date: Thu, 30 May 2024 19:37:44 +0200	[thread overview]
Message-ID: <51363037334634e27580664f104886d5eaa9b4fb.camel@gmail.com> (raw)

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


                 reply	other threads:[~2024-05-30 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51363037334634e27580664f104886d5eaa9b4fb.camel@gmail.com \
    --to=reiter.christoph@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).