Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
real_path: have callers use real_pathdup and strbuf_realpath
[gitweb.git]
/
environment.c
diff --git
a/environment.c
b/environment.c
index 0935ec696e530e1b610c71eda0a0a7072d1d656f..9b943d2d5bbc109cabd24f0f2efea7a5e79875a5 100644
(file)
--- a/
environment.c
+++ b/
environment.c
@@
-259,7
+259,7
@@
void set_git_work_tree(const char *new_work_tree)
return;
}
git_work_tree_initialized = 1;
- work_tree =
xstrdup(real_path(new_work_tree)
);
+ work_tree =
real_pathdup(new_work_tree
);
}
const char *get_git_work_tree(void)