diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-12 14:21:04 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-12 14:21:04 -0800 |
commit | 8b25dee6155fd3816f62649da196a4f42cf5584e (patch) | |
tree | ebf471c8cceee2aeed2e567fb485624a15613a50 /builtin/submodule--helper.c | |
parent | Merge branch 'jk/complete-branch-force-delete' (diff) | |
parent | MacOS: precompose_argv_prefix() (diff) | |
download | tgif-8b25dee6155fd3816f62649da196a4f42cf5584e.tar.xz |
Merge branch 'tb/precompose-prefix-too'
When commands are started from a subdirectory, they may have to
compare the path to the subdirectory (called prefix and found out
from $(pwd)) with the tracked paths. On macOS, $(pwd) and
readdir() yield decomposed path, while the tracked paths are
usually normalized to the precomposed form, causing mismatch. This
has been fixed by taking the same approach used to normalize the
command line arguments.
* tb/precompose-prefix-too:
MacOS: precompose_argv_prefix()
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r-- | builtin/submodule--helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index c2bd882d17..9d505a6329 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -1257,7 +1257,7 @@ static int compute_summary_module_list(struct object_id *head_oid, git_config(git_diff_basic_config, NULL); init_revisions(&rev, info->prefix); rev.abbrev = 0; - precompose_argv(diff_args.nr, diff_args.v); + precompose_argv_prefix(diff_args.nr, diff_args.v, NULL); setup_revisions(diff_args.nr, diff_args.v, &rev, NULL); rev.diffopt.output_format = DIFF_FORMAT_NO_OUTPUT | DIFF_FORMAT_CALLBACK; rev.diffopt.format_callback = submodule_summary_callback; |