@@ -308,7 +308,7 @@ test_expect_success SYMLINKS 'stash file to symlink' '
308
308
test -f file &&
309
309
test bar = "$(cat file)" &&
310
310
git stash apply &&
311
- case "$(ls -l file)" in *" file -> file2") :;; *) false;; esac
311
+ check_symlink file file2
312
312
'
313
313
314
314
test_expect_success SYMLINKS ' stash file to symlink (stage rm)' '
@@ -319,7 +319,7 @@ test_expect_success SYMLINKS 'stash file to symlink (stage rm)' '
319
319
test -f file &&
320
320
test bar = "$(cat file)" &&
321
321
git stash apply &&
322
- case "$(ls -l file)" in *" file -> file2") :;; *) false;; esac
322
+ check_symlink file file2
323
323
'
324
324
325
325
test_expect_success SYMLINKS ' stash file to symlink (full stage)' '
@@ -331,7 +331,7 @@ test_expect_success SYMLINKS 'stash file to symlink (full stage)' '
331
331
test -f file &&
332
332
test bar = "$(cat file)" &&
333
333
git stash apply &&
334
- case "$(ls -l file)" in *" file -> file2") :;; *) false;; esac
334
+ check_symlink file file2
335
335
'
336
336
337
337
# This test creates a commit with a symlink used for the following tests
@@ -347,7 +347,7 @@ test_expect_success 'stash symlink to file' '
347
347
348
348
test_expect_success SYMLINKS ' this must have re-created the symlink' '
349
349
test -h filelink &&
350
- case "$(ls -l filelink)" in *" filelink -> file") :;; *) false;; esac
350
+ check_symlink filelink file
351
351
'
352
352
353
353
test_expect_success ' unstash must re-create the file' '
@@ -365,7 +365,7 @@ test_expect_success 'stash symlink to file (stage rm)' '
365
365
366
366
test_expect_success SYMLINKS ' this must have re-created the symlink' '
367
367
test -h filelink &&
368
- case "$(ls -l filelink)" in *" filelink -> file") :;; *) false;; esac
368
+ check_symlink filelink file
369
369
'
370
370
371
371
test_expect_success ' unstash must re-create the file' '
@@ -384,7 +384,7 @@ test_expect_success 'stash symlink to file (full stage)' '
384
384
385
385
test_expect_success SYMLINKS ' this must have re-created the symlink' '
386
386
test -h filelink &&
387
- case "$(ls -l filelink)" in *" filelink -> file") :;; *) false;; esac
387
+ check_symlink filelink file
388
388
'
389
389
390
390
test_expect_success ' unstash must re-create the file' '
0 commit comments