File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ auml=$(printf '\303\244')
8
8
aumlcdiar=$( printf ' \141\314\210' )
9
9
10
10
unibad=
11
- no_symlinks=
12
11
test_expect_success ' see what we expect' '
13
12
14
13
test_unicode=test_expect_success &&
@@ -21,13 +20,7 @@ test_expect_success 'see what we expect' '
21
20
;;
22
21
*) ;;
23
22
esac &&
24
- rm -fr junk &&
25
- {
26
- ln -s x y 2> /dev/null &&
27
- test -h y 2> /dev/null ||
28
- no_symlinks=1 &&
29
- rm -f y
30
- }
23
+ rm -fr junk
31
24
'
32
25
33
26
if test_have_prereq CASE_INSENSITIVE_FS
40
33
41
34
test " $unibad " &&
42
35
say " will test on a unicode corrupting filesystem"
43
- test " $no_symlinks " &&
36
+ test_have_prereq SYMLINKS ||
44
37
say " will test on a filesystem lacking symbolic links"
45
38
46
39
if test_have_prereq CASE_INSENSITIVE_FS
@@ -57,18 +50,18 @@ test_expect_success "detection of case insensitive filesystem during repo init"
57
50
'
58
51
fi
59
52
60
- if test " $no_symlinks "
53
+ if test_have_prereq SYMLINKS
61
54
then
62
55
test_expect_success " detection of filesystem w/o symlink support during repo init" '
63
56
64
- v=$( git config --bool core.symlinks) &&
65
- test "$v " = false
57
+ test_must_fail git config --bool core.symlinks ||
58
+ test "$(git config --bool core.symlinks) " = true
66
59
'
67
60
else
68
61
test_expect_success " detection of filesystem w/o symlink support during repo init" '
69
62
70
- test_must_fail git config --bool core.symlinks ||
71
- test "$(git config --bool core.symlinks) " = true
63
+ v=$( git config --bool core.symlinks) &&
64
+ test "$v " = false
72
65
'
73
66
fi
74
67
You can’t perform that action at this time.
0 commit comments