diff options
| author | Stefan Beller <sbeller@google.com> | 2016-12-08 13:03:24 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-12-09 14:52:57 -0800 |
| commit | 90c0011619bd4cd4b14c366ab7a9affacb43276a (patch) | |
| tree | c24fa10818aba79decba7f6549e8ba628bf79a7a /git.c | |
| parent | 4df1d4d4666eb26b420d5b386010470729846b8c (diff) | |
| download | git-90c0011619bd4cd4b14c366ab7a9affacb43276a.tar.gz | |
submodule: use absolute path for computing relative path connecting
The current caller of connect_work_tree_and_git_dir passes
an absolute path for the `git_dir` parameter. In the future patch
we will also pass in relative path for `git_dir`. Extend the functionality
of connect_work_tree_and_git_dir to take relative paths for parameters.
We could work around this in the future patch by computing the absolute
path for the git_dir in the calling site, however accepting relative
paths for either parameter makes the API for this function much harder
to misuse.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions
