aboutsummaryrefslogtreecommitdiffstats
path: root/setup.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-24 16:39:13 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-24 16:39:14 -0700
commitf0a462ecd52573994cfd92df0401782f1e454f60 (patch)
tree69a0246a1749dcfe3c169d734301ca2a85b77ace /setup.c
parentMerge branch 'tb/pseudo-merge-reachability-bitmap' (diff)
parentmacOS: ls-files path fails if path of workdir is NFD (diff)
downloadgit-f0a462ecd52573994cfd92df0401782f1e454f60.tar.gz
git-f0a462ecd52573994cfd92df0401782f1e454f60.zip
Merge branch 'tb/precompose-getcwd'
We forgot to normalize the result of getcwd() to NFC on macOS where all other paths are normalized, which has been corrected. This still does not address the case where core.precomposeUnicode configuration is not defined globally. * tb/precompose-getcwd: macOS: ls-files path fails if path of workdir is NFD
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 20f380825b..3afa6fb09b 100644
--- a/setup.c
+++ b/setup.c
@@ -49,7 +49,7 @@ static int abspath_part_inside_repo(char *path)
size_t wtlen;
char *path0;
int off;
- const char *work_tree = get_git_work_tree();
+ const char *work_tree = precompose_string_if_needed(get_git_work_tree());
struct strbuf realpath = STRBUF_INIT;
if (!work_tree)