real_path: have callers use real_pathdup and strbuf_realpath
commit4ac9006f832d98ca1f25d956e12f3ff79e0d25bc
authorBrandon Williams <bmwill@google.com>
Mon, 12 Dec 2016 18:16:55 +0000 (12 10:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 23:22:32 +0000 (12 15:22 -0800)
tree4915a2ab954bd0431b460b2a1a726b1b29b2cc97
parent72417640769c91408d15cdbab3160bc494f49c7f
real_path: have callers use real_pathdup and strbuf_realpath

Migrate callers of real_path() who duplicate the retern value to use
real_pathdup or strbuf_realpath.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c
environment.c
setup.c
sha1_file.c
submodule.c
transport.c
worktree.c