We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e3b378 + b0afc02 commit 774282dCopy full SHA for 774282d
t/t2008-checkout-subdir.sh
@@ -58,13 +58,13 @@ test_expect_success 'checkout with simple prefix' '
58
59
'
60
61
-# This is not expected to work as ls-files was not designed
62
-# to deal with such. Enable it when ls-files is updated.
63
-: test_expect_success 'checkout with complex relative path' '
64
-
65
- rm file1 &&
66
- git checkout HEAD -- ../dir1/../dir1/file1 && test -f ./file1
67
+test_expect_success 'checkout with complex relative path' '
+ (
+ cd dir1 &&
+ rm file1 &&
+ git checkout HEAD -- ../dir1/../dir1/file1 &&
+ test "hello" = "$(cat file1)"
+ )
68
69
70
test_expect_success 'relative path outside tree should fail' \
0 commit comments