Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-07 Thread Stefan Beller
On Tue, Mar 7, 2017 at 11:52 AM, Valery Tolstov wrote: > 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. > static int module_list_compute(int argc, const char **argv,

Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-07 Thread Valery Tolstov
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.

Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-07 Thread Stefan Beller
On Tue, Mar 7, 2017 at 10:59 AM, Valery Tolstov wrote: > 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 That fragment already exists, see dir.h: connect_work_tree_and_git_dir(work_tree, git_dir); Maybe an

Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-07 Thread Valery Tolstov
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.

Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-06 Thread Stefan Beller
On Sat, Mar 4, 2017 at 6:15 AM, Valery Tolstov wrote: > Looking for microproject ideas for GSoC. > Would this issue be suitable as the microproject? It would be a good project, but not as 'micro' I would assume. ;) Why it is not a micro project: To fix this issue we'd want to fix the .git link f

Re: git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-04 Thread Valery Tolstov
Looking for microproject ideas for GSoC. Would this issue be suitable as the microproject? Thanks, Valery Tolstov

git init --separate-git-dir does not update symbolic .git links for submodules

2017-03-04 Thread Sven Strickroth
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 point