git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jon Seymour <jon.seymour@gmail.com>
Cc: git@vger.kernel.org, Jens.Lehmann@web.de
Subject: Re: [PATCH v2 2/2] submodule: fix handling of superproject with relative origin URLs
Date: Sun, 20 May 2012 19:08:35 -0700	[thread overview]
Message-ID: <7vfwau9tgc.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1337468428-26155-2-git-send-email-jon.seymour@gmail.com> (Jon Seymour's message of "Sun, 20 May 2012 09:00:28 +1000")

Jon Seymour <jon.seymour@gmail.com> writes:

> Prior to this change, an operation such as git submodule add, init or
> sync produced the wrong result when the origin URL of the superproject
> was itself a relative URL.

If you say you are "fixing" something in the title, it is already known to
the reader that a broken behaviour exists in the code without the patch in
question.  Instead of spending four useless words "Prior to this change",
could "the wrong result" be clarified with either saying "wrong in what
way" and/or "because of this and that reason"?

In the case of this patch, you explain "because..." part in the second
paragraph (which is good), so

	An operation such as A and B does this when it should do that
	instead.

stated in the present tense, as a statement of the fact, is sufficient.
"does this instead of that, which is wrong" is a lot more important.

> Note that superproject relative origin URLs of the form foo/bar
> are still not handled correctly.

I am not sure what the use case of such a layout is.  A project that has a
"bar" repository as its superproject (or its one of submodules for that
matter) may advertise that the other repository lives at ../bar.git, so
that when these two projects are served at a random hosting service, such
a cross-project pointer does not have to be rewritten as long as their
relative location at the hosting service remains the same.  But what does
it mean to say a related "foo" project lives in foo/bar.git directory
relative to one project in the first place?  Does the project's $GIT_DIR/
have a "foo" directory next to its "refs" and "objects"?  Probably I am
missing what you are trying to achieve.  Puzzled.

  reply	other threads:[~2012-05-21  2:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-19 23:00 [PATCH v2 1/2] submodule: add tests for add,sync,init in presence of relative super origin URL Jon Seymour
2012-05-19 23:00 ` [PATCH v2 2/2] submodule: fix handling of superproject with relative origin URLs Jon Seymour
2012-05-21  2:08   ` Junio C Hamano [this message]
2012-05-21 13:52     ` Jon Seymour

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7vfwau9tgc.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Jens.Lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=jon.seymour@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).