Re: [PATCH 4/4] submodule--helper: use relative path if possible

2016-03-31 Thread Stefan Beller
On Thu, Mar 31, 2016 at 9:59 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> As submodules have working directory and their git directory far apart >> relative_path(gitdir, work_dir) will not produce a relative path when >> git_dir is absolute. When the gitdir is absolute, we need to conve

Re: [PATCH 4/4] submodule--helper: use relative path if possible

2016-03-31 Thread Junio C Hamano
Stefan Beller writes: > As submodules have working directory and their git directory far apart > relative_path(gitdir, work_dir) will not produce a relative path when > git_dir is absolute. When the gitdir is absolute, we need to convert > the workdir to an absolute path as well to compute the re

[PATCH 4/4] submodule--helper: use relative path if possible

2016-03-30 Thread Stefan Beller
As submodules have working directory and their git directory far apart relative_path(gitdir, work_dir) will not produce a relative path when git_dir is absolute. When the gitdir is absolute, we need to convert the workdir to an absolute path as well to compute the relative path. (e.g. gitdir=/home