From: Jiang Xin Date: Mon, 14 Oct 2013 02:29:39 +0000 (+0800) Subject: relative_path should honor dos-drive-prefix X-Git-Tag: v1.8.5-rc0~25^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7fbd422162f2b49bc06a29a063f519450165dc86?ds=inline;hp=7fbd422162f2b49bc06a29a063f519450165dc86 relative_path should honor dos-drive-prefix Tvangeste found that the "relative_path" function could not work properly on Windows if "in" and "prefix" have DOS drive prefix (such as "C:/windows"). ($gmane/234434) E.g., When execute: test-path-utils relative_path "C:/a/b" "D:/x/y", should return "C:/a/b", but returns "../../C:/a/b", which is wrong. So make relative_path honor DOS drive prefix, and add test cases for it in t0060. Reported-by: Tvangeste Helped-by: Johannes Sixt Signed-off-by: Jiang Xin Signed-off-by: Jonathan Nieder ---