Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
use strbuf_add_absolute_path() to add absolute paths
author
René Scharfe
<l.s.r@web.de>
Mon, 28 Jul 2014 18:34:42 +0000
(20:34 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 26 Aug 2014 18:06:06 +0000
(11:06 -0700)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
679eebe
)
diff --git
a/exec_cmd.c
b/exec_cmd.c
index 125fa6fabf503d29cb82b2ccbc92359abf95b0e8..698e7526c40749fd333367018c192537cf6b4562 100644
(file)
--- a/
exec_cmd.c
+++ b/
exec_cmd.c
@@
-86,11
+86,7
@@
const char *git_exec_path(void)
static void add_path(struct strbuf *out, const char *path)
{
if (path && *path) {
- if (is_absolute_path(path))
- strbuf_addstr(out, path);
- else
- strbuf_addstr(out, absolute_path(path));
-
+ strbuf_add_absolute_path(out, path);
strbuf_addch(out, PATH_SEP);
}
}