From: "Storm-Olsen, Marius" <Marius.Storm-Olsen@student.bi.no>
To: Sitaram Chamarty <sitaramc@gmail.com>,
Junio C Hamano <gitster@pobox.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
milki <milki@rescomp.berkeley.edu>
Subject: Re: optimising a push by fetching objects from nearby repos
Date: Sun, 11 May 2014 01:34:10 +0000 [thread overview]
Message-ID: <1399772049733.13154@student.bi.no> (raw)
In-Reply-To: <536ECC93.1070102@gmail.com>
On 5/10/2014 8:04 PM, Sitaram Chamarty wrote:
> On 05/11/2014 02:32 AM, Junio C Hamano wrote: That's an interesting
> thread and it's recent too. However, it's about clone (though the
> intro email mentions other commands also).
>
> I'm specifically interested in push efficiency right now. When you
> "fork" someone's repo to your own space, and you push your fork to
> the same server, it ought to be able to get most of the common
> objects from disk (specifically, from the repo you forked), and only
> what extra you did from the network.
>
...
>
> I do have a way to do this in gitolite (haven't coded it yet; just
> thinking). Gitolite lets you specify something to do before
> git-*-pack runs, and I was planning something like this:
And here you're poking the stick at the real solution to your problem.
Many of the Git repo managers will neatly set up a server-side repo
clone for you, with alternates into the original repo saving both
network and disk I/O.
So your work flow would instead be:
1. Fork repo on server
2. Remotely clone your own forked repo
I think it's more appropriate to handle this higher level operation
within the security context of a git repo manager, rather than directly
in git.
--
.marius
next prev parent reply other threads:[~2014-05-11 1:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-10 13:39 optimising a push by fetching objects from nearby repos Sitaram Chamarty
2014-05-10 13:54 ` Duy Nguyen
2014-05-10 17:23 ` brian m. carlson
2014-05-10 17:32 ` milki
2014-05-10 20:04 ` brian m. carlson
2014-05-10 21:02 ` Junio C Hamano
2014-05-11 1:04 ` Sitaram Chamarty
2014-05-11 1:34 ` Storm-Olsen, Marius [this message]
2014-05-11 2:10 ` Sitaram Chamarty
2014-05-11 3:11 ` Storm-Olsen, Marius
2014-05-11 5:21 ` Sitaram Chamarty
2014-05-11 18:04 ` Junio C Hamano
2014-05-12 1:50 ` Sitaram Chamarty
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=1399772049733.13154@student.bi.no \
--to=marius.storm-olsen@student.bi.no \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=milki@rescomp.berkeley.edu \
--cc=sitaramc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.