git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nipunn Koorapati <nipunn1313@gmail.com>
To: git@vger.kernel.org
Subject: Partial clone fails with file:/// URI
Date: Wed, 14 Oct 2020 17:38:15 +0100	[thread overview]
Message-ID: <CAN8Z4-XgctFZxZoTWRpD1V9NFr34ObzG2dxUoAfuJ4NOsBDdtg@mail.gmail.com> (raw)

Hi friends,

When I run a git clone with --filter and a file:/// URI - it fails.

Repro steps:

I have the `git` repo cloned and built into the CWD at v2.28.0
git/git clone --filter=blob:none file:///home/nipunn/src/git git2

nipunn@nipunn-dbx:~/src$ git/git clone --filter=blob:none
file:///home/nipunn/src/git git2
Cloning into 'git2'...
warning: templates not found in /home/nipunn/share/git-core/templates
remote: Enumerating objects: 177110, done.
remote: Counting objects: 100% (177110/177110), done.
remote: Compressing objects: 100% (61436/61436), done.
Receiving objects: 100% (177110/177110), 62.58 MiB | 43.95 MiB/s, done.
remote: Total 177110 (delta 114305), reused 176904 (delta 114102), pack-reused 0
Resolving deltas: 100% (114305/114305), done.
fatal: the remote end hung up unexpectedly
fatal: protocol error: bad pack header
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

It seems to work ok with a remote URI or w/o a --filter arg.
I was able to confirm that the "bad pack header" is a "-1" response
code PH_ERROR_EOF
Perhaps the `fatal: protocol error: bad pack header` - should include
the error code as well.
Thanks
--Nipunn

             reply	other threads:[~2020-10-14 16:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 16:38 Nipunn Koorapati [this message]
2020-10-14 16:56 ` Partial clone fails with file:/// URI Taylor Blau
2020-10-14 17:04   ` Nipunn Koorapati
2020-10-14 17:27     ` Taylor Blau
2020-10-14 23:41       ` Nipunn Koorapati
2020-10-15  1:20     ` Jeff King

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=CAN8Z4-XgctFZxZoTWRpD1V9NFr34ObzG2dxUoAfuJ4NOsBDdtg@mail.gmail.com \
    --to=nipunn1313@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).