Skip to content

Commit 66e28e9

Browse files
sunshinecogitster
authored andcommitted
t2004: standardize file naming in symlink test
Update "symlink" test to use the common file naming scheme so that its temporary files can be cleaned up by the "rm -f path*" idiom employed by other tests in this script. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0bbc971 commit 66e28e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t2004-checkout-cache-temp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ test_expect_success 'checkout --temp within subdir' '
197197

198198
test_expect_success 'checkout --temp symlink' '
199199
rm -f path* .merge_* actual .git/index &&
200-
test_ln_s_add b a &&
200+
test_ln_s_add path7 path6 &&
201201
git checkout-index --temp -a >actual &&
202202
test_line_count = 1 actual &&
203-
test $(cut "-d " -f2 actual) = a &&
203+
test $(cut "-d " -f2 actual) = path6 &&
204204
p=$(cut "-d " -f1 actual) &&
205205
test -f $p &&
206-
test $(cat $p) = b
206+
test $(cat $p) = path7
207207
'
208208

209209
test_done

0 commit comments

Comments
 (0)