author | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Jan 2010 03:05:19 +0000 (19:05 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Jan 2010 23:34:56 +0000 (15:34 -0800) | ||
commit | 288123f01cb1b835edbf6e2e188159c2ff858aca | |
tree | c10efa0ec8474dc08928427134ad7116d3bee046 | tree | snapshot |
parent | 19c6a4f8369f37c0df1fb57008a891eb6a6dc4bb | commit | diff |
ignore duplicated slashes in make_relative_path()
The function takes two paths, an early part of abs is supposed to match
base; otherwise abs is not a path under base and the function returns the
full path of abs. The caller can easily confuse the implementation by
giving duplicated and needless slashes in these path arguments.
Credit for test script, motivation and initial patch goes to Thomas Rast.
A follow-up fix (squashed) is by Hannes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The function takes two paths, an early part of abs is supposed to match
base; otherwise abs is not a path under base and the function returns the
full path of abs. The caller can easily confuse the implementation by
giving duplicated and needless slashes in these path arguments.
Credit for test script, motivation and initial patch goes to Thomas Rast.
A follow-up fix (squashed) is by Hannes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c | diff | blob | history | |
t/t1501-worktree.sh | diff | blob | history |