author | Theo Niessink <theo@taletn.com> | |
Fri, 27 May 2011 16:00:39 +0000 (18:00 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 May 2011 17:59:16 +0000 (10:59 -0700) | ||
commit | d1c69255a1014ccaeb9841f2114e20f048556391 | |
tree | cf14af796f23230e0f2cbda339e4bc7074c1c7d1 | tree | snapshot |
parent | 88135203af9df27c0f9c76c27bbbf48833bb31c8 | commit | diff |
real_path: do not assume '/' is the path seperator
real_path currently assumes it's input had '/' as path seperator.
This assumption does not hold true for the code-path from
prefix_path (on Windows), where real_path can be called before
normalize_path_copy.
Fix real_path so it doesn't make this assumption. Create a helper
function to reverse-search for the last path-seperator in a string.
Signed-off-by: Theo Niessink <theo@taletn.com>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
real_path currently assumes it's input had '/' as path seperator.
This assumption does not hold true for the code-path from
prefix_path (on Windows), where real_path can be called before
normalize_path_copy.
Fix real_path so it doesn't make this assumption. Create a helper
function to reverse-search for the last path-seperator in a string.
Signed-off-by: Theo Niessink <theo@taletn.com>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c | diff | blob | history | |
compat/mingw.h | diff | blob | history | |
git-compat-util.h | diff | blob | history |