commit | f4c21e89d7c6b578140e90c02b40eccb51ab8428 | [log] [tgz] |
---|---|---|
author | Michael Haggerty <mhagger@alum.mit.edu> | Fri Sep 07 00:41:03 2012 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Sep 06 16:19:58 2012 -0700 |
tree | 263d364a4ad03fd1def55d38d392f047224b511b | |
parent | 7bcf48dad83e7a07f27403c2ce9e5c29af9e317d [diff] |
real_path(): properly handle nonexistent top-level paths The change has two points: 1. Do not strip off a leading slash, because that erroneously turns an absolute path into a relative path. 2. Do not remove slashes from groups of multiple slashes; instead let chdir() handle them. It could be, for example, that it wants to leave leading double-slashes alone. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>