diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:23 -0800 |
commit | fc32293502e86be2cabbe5e8e5863a2b657207b8 (patch) | |
tree | 87798ac7776dc9473d09f94ec45b96398cbc16b9 /setup.c | |
parent | Merge branch 'rs/sha1-file-plug-fallback-base-leak' (diff) | |
parent | strbuf: add strbuf_add_real_path() (diff) | |
download | tgif-fc32293502e86be2cabbe5e8e5863a2b657207b8.tar.xz |
Merge branch 'rs/strbuf-add-real-path'
An helper function to make it easier to append the result from
real_path() to a strbuf has been added.
* rs/strbuf-add-real-path:
strbuf: add strbuf_add_real_path()
cocci: use ALLOC_ARRAY
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -254,7 +254,7 @@ int get_common_dir_noenv(struct strbuf *sb, const char *gitdir) if (!is_absolute_path(data.buf)) strbuf_addf(&path, "%s/", gitdir); strbuf_addbuf(&path, &data); - strbuf_addstr(sb, real_path(path.buf)); + strbuf_add_real_path(sb, path.buf); ret = 1; } else { strbuf_addstr(sb, gitdir); |