All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: git init --separate-git-dir does not update symbolic .git links for submodules
@ 2017-03-04 14:15 Valery Tolstov
  2017-03-06 16:40 ` Stefan Beller
  0 siblings, 1 reply; 7+ messages in thread
From: Valery Tolstov @ 2017-03-04 14:15 UTC (permalink / raw)
  To: sven; +Cc: git, gitster

Looking for microproject ideas for GSoC.
Would this issue be suitable as the microproject?

Thanks,
  Valery Tolstov




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: git init --separate-git-dir does not update symbolic .git links for submodules
@ 2017-03-07 19:52 Valery Tolstov
  2017-03-07 20:11 ` Stefan Beller
  0 siblings, 1 reply; 7+ messages in thread
From: Valery Tolstov @ 2017-03-07 19:52 UTC (permalink / raw)
  To: sbeller; +Cc: git, gitster, me, sven

Just noticed that there already is function that gives module list
module_list_compute. But purpose of it's arguments is not quite clear
for me at this moment.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: git init --separate-git-dir does not update symbolic .git links for submodules
@ 2017-03-07 18:59 Valery Tolstov
  2017-03-07 19:59 ` Stefan Beller
  0 siblings, 1 reply; 7+ messages in thread
From: Valery Tolstov @ 2017-03-07 18:59 UTC (permalink / raw)
  To: sbeller; +Cc: git, gitster, me, sven

I think we can reuse code from module_clone that writes .git link.
Possibly this code fragment needs to be factored out from module_clone

Also, to fix all the links, we need to obtain the list of submodules
and then iterate over them. module_list command iterates
and prints the result to stdout. Maybe we can reuse this output.
Or create separate function that returns the list of submodules.

Can we call these functions from submodule--helper inside init command,
or run them thorugh internal command interface?

In my opinion, make submodule--helper fully responsible for link fixes
would be a good solution. Then we create two additional function, one
that fixes all submodules on the current level, and another that
fixes individual submodule.
Although it looks good, I'm not quite sure that it's really good.

So, maybe we can do link fixes like this:

    1. Start fixing from init command using submodule--helper, with
       subcommand that fixes all submodules on current level
    2. Each submodule processed with another subcommand/function in
       submodule--helper individually
    3. Repeat for current submodule recursively

Glad to see your advices.

Regards,
  Valery Tolstov




^ permalink raw reply	[flat|nested] 7+ messages in thread
* git init --separate-git-dir does not update symbolic .git links for submodules
@ 2017-03-04 12:15 Sven Strickroth
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Strickroth @ 2017-03-04 12:15 UTC (permalink / raw)
  To: Git List, Junio C Hamano

Hi,

clone or have a repository with submodules.

Now issue "git init --separate-git-dir ../test" which moves the content
of the .git direcotry to the ../test directory and replaces the .git
directory with a .git file "link".

However, for all submodules the .git-file is not updated and still
points to the .git directory of the parent repository which now is a file.

This issue is present for me in Git 2.12.0.

-- 
Best regards,
 Sven Strickroth
 PGP key id F5A9D4C4 @ any key-server

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-07 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04 14:15 git init --separate-git-dir does not update symbolic .git links for submodules Valery Tolstov
2017-03-06 16:40 ` Stefan Beller
  -- strict thread matches above, loose matches on Subject: below --
2017-03-07 19:52 Valery Tolstov
2017-03-07 20:11 ` Stefan Beller
2017-03-07 18:59 Valery Tolstov
2017-03-07 19:59 ` Stefan Beller
2017-03-04 12:15 Sven Strickroth

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.