Merge branch 'bc/http-fallback-to-password-after-krb-fails'
[gitweb.git] / t / t2004-checkout-cache-temp.sh
index 602fbc753cf6873a303f285a777238f9ce0dc8ac..a12afe93f32948dd994d55418ed93485757d2ba8 100755 (executable)
@@ -206,4 +206,16 @@ test_expect_success 'checkout --temp symlink' '
        test $(cat $p) = path7
 '
 
+test_expect_success 'emit well-formed relative path' '
+       rm -f path* .merge_* actual .git/index &&
+       >path0123456789 &&
+       git update-index --add path0123456789 &&
+       (
+               cd asubdir &&
+               git checkout-index --temp -- ../path0123456789 >actual &&
+               test_line_count = 1 actual &&
+               test $(cut "-d  " -f2 actual) = ../path0123456789
+       )
+'
+
 test_done