summaryrefslogtreecommitdiff
path: root/git-remote-testpy.py
diff options
context:
space:
mode:
authorJiang Xin <worldhello.net@gmail.com>2013-10-14 02:29:39 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2013-10-14 14:00:26 (GMT)
commit7fbd422162f2b49bc06a29a063f519450165dc86 (patch)
tree206305e4a38d3e6858d89f7d11dfb48fb0b082c0 /git-remote-testpy.py
parentdaf19a80fa6b7402f8a2efa8f8255b4b5d6b48a9 (diff)
downloadgit-7fbd422162f2b49bc06a29a063f519450165dc86.zip
git-7fbd422162f2b49bc06a29a063f519450165dc86.tar.gz
git-7fbd422162f2b49bc06a29a063f519450165dc86.tar.bz2
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 <i.4m.l33t@yandex.ru> Helped-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Jiang Xin <worldhello.net@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'git-remote-testpy.py')
0 files changed, 0 insertions, 0 deletions