init: avoid superfluous real_path() calls
commit2d186c8be5bea10640927e0822bd9e1c7a2e01ea
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:42:05 +0000 (28 20:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jul 2014 23:17:12 +0000 (28 16:17 -0700)
tree21ed89eff6c024292dc63b56362769bedbe05a17
parentd299e9e550c1bf8640907fdba1f03cc585ee71df
init: avoid superfluous real_path() calls

Feeding the result of a real_path() call to real_path() again doesn't
change that result -- the returned path won't get any more real.  Avoid
such a double call in set_git_dir_init() and for the same reason stop
calling real_path() before feeding paths to set_git_work_tree(), as the
latter already takes care of that.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c