t0060: add test for prefix_path when path == work tree
authorMartin Erik Werner <martinerikwerner@gmail.com>
Tue, 4 Feb 2014 14:25:17 +0000 (15:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2014 19:25:33 +0000 (11:25 -0800)
commite5aa1fc472696bfc337b3f128d45c1ef2aba394d
treeac7041726784f60ec793d947c71f38946878e0fc
parent74af95d6aac03e1a1227c78d0d0ea8bbc2fa2b4d
t0060: add test for prefix_path when path == work tree

The current behaviour of prefix_path is to return an empty string if
prefixing and absolute path that only contains exactly the work tree.
This behaviour is a potential regression point.

Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com>
Reviewed-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0060-path-utils.sh