t: avoid using ":" for comments
The ":" is not a comment marker, but rather a noop command. Using it as a comment like: : do something cmd1 && : something else cmd2 breaks the &&-chain, and we would fail to notice if "cmd1" failed in this instance. We can just use regular "#" comments instead. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Mar 20, 2015 at 06:12 UTC
53350a35a3c29417dfc64ae2b0d7a16ba43d1239
2 files changed
+10
-10
t/t4104-apply-boundary.sh
+9
-9
@@ -18,7 +18,7 @@ test_expect_success setup '
18
cat victim >original &&
19
git update-index --add victim &&
20
21
- : add to the head
21
+ # add to the head
22
for i in a b '"$L"' y
23
do
24
echo $i
@@ -27,7 +27,7 @@ test_expect_success setup '
27
git diff victim >add-a-patch.with &&
28
git diff --unified=0 >add-a-patch.without &&
29
30
- : insert at line two
30
+ # insert at line two
31
for i in b a '"$L"' y
32
do
33
echo $i
@@ -36,7 +36,7 @@ test_expect_success setup '
36
git diff victim >insert-a-patch.with &&
37
git diff --unified=0 >insert-a-patch.without &&
38
39
- : modify at the head
39
+ # modify at the head
40
for i in a '"$L"' y
41
do
42
echo $i
@@ -45,16 +45,16 @@ test_expect_success setup '
45
git diff victim >mod-a-patch.with &&
46
git diff --unified=0 >mod-a-patch.without &&
47
48
- : remove from the head
48
+ # remove from the head
49
for i in '"$L"' y
50
do
51
echo $i
52
done >victim &&
53
cat victim >del-a-expect &&
54
- git diff victim >del-a-patch.with
54
+ git diff victim >del-a-patch.with &&
55
git diff --unified=0 >del-a-patch.without &&
56
57
- : add to the tail
57
+ # add to the tail
58
for i in b '"$L"' y z
59
do
60
echo $i
@@ -63,7 +63,7 @@ test_expect_success setup '
63
git diff victim >add-z-patch.with &&
64
git diff --unified=0 >add-z-patch.without &&
65
66
- : modify at the tail
66
+ # modify at the tail
67
for i in b '"$L"' z
68
do
69
echo $i
@@ -72,7 +72,7 @@ test_expect_success setup '
72
git diff victim >mod-z-patch.with &&
73
git diff --unified=0 >mod-z-patch.without &&
74
75
- : remove from the tail
75
+ # remove from the tail
76
for i in b '"$L"'
77
do
78
echo $i
@@ -81,7 +81,7 @@ test_expect_success setup '
81
git diff victim >del-z-patch.with &&
82
git diff --unified=0 >del-z-patch.without
83
84
- : done
84
+ # done
85
'
86
87
for with in with without
t/t5533-push-cas.sh
+1
-1
@@ -14,7 +14,7 @@ setup_srcdst_basic () {
14
}
15
16
test_expect_success setup '
17
- : create template repository
17
+ # create template repository
18
test_commit A &&
19
test_commit B &&
20
test_commit C