From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Duy Nguyen <pclouds@gmail.com>, Mike Edgar <adgar@google.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] clone: check if server supports shallow clones
Date: Wed, 17 Jun 2015 12:59:10 -0400 [thread overview]
Message-ID: <20150617165909.GB22689@peff.net> (raw)
In-Reply-To: <xmqq8ubi47jo.fsf@gitster.dls.corp.google.com>
On Wed, Jun 17, 2015 at 09:35:23AM -0700, Junio C Hamano wrote:
> > Of course it's hard to add to the test suite, since we do not have a way
> > of hitting a server that does not understand shallow (I simply fudged
> > server_supports() to return false on the client).
>
> We've had the "shallow" capability advertised since ed09aef0
> (support fetching into a shallow repository, 2006-10-30), and this
> patch itself may not be that super-important in practice. Let's not
> worry too much about a test for situations that may not likely
> matter to us [*1*].
I had actually started looking at doing a generic interop testing
suite. It would be nice to be able to do something like:
cd t/interop
./run v1.0.0 v2.0.0 ./t0001-clone.sh
and then the test script looks something like:
test_expect_success 'clone with A from B' '
git.a clone -u "git.b upload-pack"
'
The "run" script is similar to the version in t/perf that builds
arbitrary revisions for testing, but with the twist that it points
the PATH to "git.a" and "git.b", which symlink into the bin-wrappers/ of
the built directories (and probably disallows bare "git" to prevent
mistakes).
But I agree that this particular bug is not all that exciting to test.
> *1* How behind are re-implementations of upload-pack by other
> people, I have to wonder, though?
JGit advertises "shallow". Libgit2 does not, but it also does not
implement upload-pack. :)
I do wonder which server Mike was hitting to come across this in the
first place. Maybe the Google Code dulwich-based one?
-Peff
prev parent reply other threads:[~2015-06-17 16:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 18:35 [PATCH] clone: check if server supports shallow clones Mike Edgar
2015-06-10 19:05 ` Jeff King
2015-06-10 20:25 ` Michael Edgar
2015-06-10 20:56 ` Jeff King
2015-06-11 13:02 ` Duy Nguyen
2015-06-11 14:32 ` Jeff King
2015-06-11 18:18 ` Michael Edgar
2015-06-11 20:44 ` Junio C Hamano
2015-06-17 11:48 ` [PATCH v2] fetch-pack: check for shallow if depth given Mike Edgar
2015-06-17 17:00 ` Jeff King
2015-06-17 16:35 ` [PATCH] clone: check if server supports shallow clones Junio C Hamano
2015-06-17 16:59 ` Jeff King [this message]
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=20150617165909.GB22689@peff.net \
--to=peff@peff.net \
--cc=adgar@google.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
/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).