diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-14 16:36:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 16:36:19 +0000 |
commit | f7963f28cad7b2416a3cb0e55bc5adf85c82607b (patch) | |
tree | ec49ba5e08c74de903a9b99e712cf4e2192ec6bd /src/libgit2/attrcache.c | |
parent | 1119326aadfca4062679722b3ed975b569bcc0cf (diff) | |
parent | e0220e6a222b056ab44d68f41a62012077d2a3f3 (diff) | |
download | libgit2-f7963f28cad7b2416a3cb0e55bc5adf85c82607b.tar.gz |
Merge pull request #6455 from libgit2/ethomson/sysdir
Support the notion of a home directory separately from global configuration directory
Diffstat (limited to 'src/libgit2/attrcache.c')
-rw-r--r-- | src/libgit2/attrcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/attrcache.c b/src/libgit2/attrcache.c index b16d95c3c..405944ed1 100644 --- a/src/libgit2/attrcache.c +++ b/src/libgit2/attrcache.c @@ -300,7 +300,7 @@ static int attr_cache__lookup_path( /* expand leading ~/ as needed */ if (cfgval && cfgval[0] == '~' && cfgval[1] == '/') { - if (! (error = git_sysdir_expand_global_file(&buf, &cfgval[2]))) + if (! (error = git_sysdir_expand_homedir_file(&buf, &cfgval[2]))) *out = git_str_detach(&buf); } else if (cfgval) { *out = git__strdup(cfgval); |