commit | ed0cb46ebb020234da94a843ca341dde8e9e3911 | [log] [tgz] |
---|---|---|
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | Sun Feb 14 22:44:41 2010 +0700 |
committer | Junio C Hamano <gitster@pobox.com> | Sun Feb 14 13:21:31 2010 -0800 |
tree | 80997641ffa0b56b3460b66ec70abcf4d3080cc8 | |
parent | 4133fd25525022f99d2c7ba339618433bdd919fe [diff] |
make_absolute_path(): Do not append redundant slash When concatenating two paths, if the first one already have '/', do not put another '/' in between the two paths. Usually this is not the case as getcwd() won't return '/foo/bar/', except when you are standing at root, then it will return '/'. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>