git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Riedy <jason@acm.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Pass --upload-pack and --receive-pack through submodules.
Date: Thu, 01 Jan 2009 20:44:03 -0500	[thread overview]
Message-ID: <878wpua3do.fsf@sparse.dyndns.org> (raw)
In-Reply-To: <7vy6xuhhbx.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Thu, 01 Jan 2009 13:00:50 -0800")

And Junio C. Hamano writes:
> Do we (and can we) assume that the remote repositories submodules fetch
> from all reside on the same host and can share the same values for these
> parameters?  Shouldn't these instead be specified in the configuration
> files for the submodules, if they need to be nonstandard values?

git does not and (for me) should not make the assumption above.
I'm fetching different pieces from different administrative
domains where I also have push access.  While I could clone them
all into one place, that adds another level of repositories I'd
have to keep up-to-date.

Essentially, I'm collecting experimental libraries and drivers
into one build tree.  My intent is to record exactly what is
being built on multiple machines while being able to push local
build configurations back to my central superproject.  Then I can
make a version with pull-only remote URLs[1] for others to
duplicate the setup for my experiments.

I suppose I could clone the submodules by hand and then use git
submodule add.  But then I'll have to build the structure by hand
(with my own wrapper) everywhere I use the supermodule.  At that
point, using git submodule becomes a tad silly.  Or I could set
up the superproject with pull-only URLs and modify the
configurations with a separate wrapper.  Seemed like adding the
two options to git submodule was easier.

Jason

Footnotes: 
[1]  Or ask for separate pull- and push-urls in git remote.  But
I haven't thought that through.

      reply	other threads:[~2009-01-02  1:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-30  2:44 [PATCH] Pass --upload-pack and --receive-pack through submodules Jason Riedy
2008-12-30 15:09 ` Jason Riedy
2009-01-01 21:00   ` Junio C Hamano
2009-01-02  1:44     ` Jason Riedy [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=878wpua3do.fsf@sparse.dyndns.org \
    --to=jason@acm.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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).