author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Sun, 14 Feb 2010 15:44:41 +0000 (22:44 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Feb 2010 21:21:31 +0000 (13:21 -0800) | ||
commit | ed0cb46ebb020234da94a843ca341dde8e9e3911 | |
tree | 80997641ffa0b56b3460b66ec70abcf4d3080cc8 | tree | snapshot |
parent | 4133fd25525022f99d2c7ba339618433bdd919fe | commit | 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>
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>
abspath.c | diff | blob | history |