* gut submodule update and merge
@ 2011-03-17 20:16 Carl Fürstenberg
2011-03-18 14:13 ` Carl Fürstenberg
0 siblings, 1 reply; 2+ messages in thread
From: Carl Fürstenberg @ 2011-03-17 20:16 UTC (permalink / raw)
To: git
Hello,
I've tried to setup in a n makefile a way to easy initialize and
update submodules and at the same time keep eventual changes in the
submodules. I though an "git submodule update --init --recursive
--merge" would work,
but this i notices created strange result if the submodules hadn't
been checked out in the first place. the result then was that it
marked in index all files to be deleted.
This behavior wasn't what I had in mind, and it resulted in I did
following "fix" to resolve the issue (ugly):
https://github.com/azatoth/jquery/commit/9977732a26820dd7f3ced2ce4554edadd62ae52c
Is this the intended behavior? logically I think an clean "git
submodule update --init --merge" should not try to merge if there
wasn't anything to begin with.
/Carl
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gut submodule update and merge
2011-03-17 20:16 gut submodule update and merge Carl Fürstenberg
@ 2011-03-18 14:13 ` Carl Fürstenberg
0 siblings, 0 replies; 2+ messages in thread
From: Carl Fürstenberg @ 2011-03-18 14:13 UTC (permalink / raw)
To: git
2011/3/17 Carl Fürstenberg <azatoth@gmail.com>:
> Hello,
>
> I've tried to setup in a n makefile a way to easy initialize and
> update submodules and at the same time keep eventual changes in the
> submodules. I though an "git submodule update --init --recursive
> --merge" would work,
> but this i notices created strange result if the submodules hadn't
> been checked out in the first place. the result then was that it
> marked in index all files to be deleted.
>
> This behavior wasn't what I had in mind, and it resulted in I did
> following "fix" to resolve the issue (ugly):
> https://github.com/azatoth/jquery/commit/9977732a26820dd7f3ced2ce4554edadd62ae52c
>
> Is this the intended behavior? logically I think an clean "git
> submodule update --init --merge" should not try to merge if there
> wasn't anything to begin with.
>
> /Carl
>
If my question wasn't clear I'm sorry, All I'm wondering is if using
--merge when cloning an new submodule should behave this way or not. I
don't think most peoples intentions when using merge on an
non-existent repo should be to delete all file :)
/Carl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-18 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17 20:16 gut submodule update and merge Carl Fürstenberg
2011-03-18 14:13 ` Carl Fürstenberg
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).