From: "Spencer E. Olson" <olsonse@umich.edu>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Carl Fürstenberg" <azatoth@gmail.com>,
git@vger.kernel.org, "Jens Lehmann" <Jens.Lehmann@web.de>
Subject: Re: Git submodule update and the --merge flag when submodule is yet to be checked out
Date: Fri, 18 Mar 2011 14:24:40 -0700 [thread overview]
Message-ID: <201103181524.40521.olsonse@umich.edu> (raw)
In-Reply-To: <7vipvgw3c1.fsf@alter.siamese.dyndns.org>
Yes, this was the intent of this fix last month
On Friday 18 March 2011 15:01, Junio C Hamano wrote:
> Carl Fürstenberg <azatoth@gmail.com> writes:
> > Sorry for re-posting the question but I though I should explain the
> > issue better and to fix the subject line.
> > sub
> > When you are cloning repository containing submodules, and you are
> > using the --merge flag to "git submodule update" the first time, then
> > the submodule instance in question will assume you want to delete all
> > files present in the module.
>
> Is this something we fixed last month?
>
> commit 1b4735d9f3e0b7ea62c7c22f0afcb45e10c46c7e
> Author: Spencer E. Olson <olsonse@umich.edu>
> Date: Thu Feb 17 09:18:45 2011 -0700
>
> submodule: no [--merge|--rebase] when newly cloned
>
> "git submodule update" can be run with either the "--merge" or
> "--rebase" option, or submodule.<name>.update configuration variable can be
> set to "merge" or "rebase, to cause local work to get integrated when
> updating the submodule.
>
> When a submodule is newly cloned, however, it does not have a check out
> when a rebase or merge is attempted, leading to a failure. For newly
> cloned submodules, simply check out the appropriate revision. There is
> no local work to integrate with for them.
>
> Signed-off-by: Spencer E. Olson <olsonse@umich.edu>
> Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
next prev parent reply other threads:[~2011-03-18 21:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 18:25 Git submodule update and the --merge flag when submodule is yet to be checked out Carl Fürstenberg
2011-03-18 21:01 ` Junio C Hamano
2011-03-18 21:06 ` Carl Fürstenberg
2011-03-18 21:24 ` Spencer E. Olson [this message]
2011-03-18 21:35 ` Junio C Hamano
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=201103181524.40521.olsonse@umich.edu \
--to=olsonse@umich.edu \
--cc=Jens.Lehmann@web.de \
--cc=azatoth@gmail.com \
--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 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.