Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-05 07:48:19 +0300
committerJunio C Hamano <gitster@pobox.com>2017-10-05 07:48:19 +0300
commite46ebc27547e3d09385a76ade7ab11dc794f7595 (patch)
tree30cb7479169551ea70b0efaf87881d1a0001b6d1 /path.c
parentefe9d6ce33ed817150f4ff63ebfc14a3f7667eb4 (diff)
parent38bdf62b738bb93f7e1a6af8058dc31f27c91d4e (diff)
Merge branch 'rs/cleanup-strbuf-users'
Code clean-up. * rs/cleanup-strbuf-users: graph: use strbuf_addchars() to add spaces use strbuf_addstr() for adding strings to strbufs path: use strbuf_add_real_path()
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 5aa9244eb2..00ec04e7a5 100644
--- a/path.c
+++ b/path.c
@@ -718,7 +718,7 @@ char *expand_user_path(const char *path, int real_home)
if (!home)
goto return_null;
if (real_home)
- strbuf_addstr(&user_path, real_path(home));
+ strbuf_add_real_path(&user_path, home);
else
strbuf_addstr(&user_path, home);
#ifdef GIT_WINDOWS_NATIVE