@matheusbsbs / matheus-bagliano / commits / aa74be316a
Fork 0

Fix spelling errors in test commands

Apply several spelling fixes that technically change what the tests are executing, but do so in a way that is not tested and does not affect results (e.g. modify the commit message to remove a typo, remove spelling mistakes from refnames, etc.) Reported-by: Jens Schleusener <Jens.Schleusener@fossies.org> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Nov 5, 2019 at 17:07 UTC aa74be316a5113161e4b92e543874e2f017956a1
7 files changed +17 -17
t/t3210-pack-refs.sh
+1 -1
@@ -240,7 +240,7 @@ test_expect_success 'retry acquiring packed-refs.lock' '
240
241 test_expect_success SYMLINKS 'pack symlinked packed-refs' '
242 # First make sure that symlinking works when reading:
243 - git update-ref refs/heads/loosy refs/heads/master &&
243 + git update-ref refs/heads/lossy refs/heads/master &&
244 git for-each-ref >all-refs-before &&
245 mv .git/packed-refs .git/my-deviant-packed-refs &&
246 ln -s my-deviant-packed-refs .git/packed-refs &&
t/t3905-stash-include-untracked.sh
+2 -2
@@ -277,8 +277,8 @@ test_expect_success 'stash -u -- <ignored> leaves ignored file alone' '
277 test_path_is_file ignored.d/bar
278 '
279
280 -test_expect_success 'stash -u -- <non-existant> shows no changes when there are none' '
281 - git stash push -u -- non-existant >actual &&
280 +test_expect_success 'stash -u -- <non-existent> shows no changes when there are none' '
281 + git stash push -u -- non-existent >actual &&
282 echo "No local changes to save" >expect &&
283 test_i18ncmp expect actual
284 '
t/t4100/t-apply-1.patch
+2 -2
@@ -75,8 +75,8 @@ diff --git a/Documentation/git.txt b/Documentation/git.txt
75 +link:git-ssh-pull.html[git-ssh-pull]::
76 Pulls from a remote repository over ssh connection
77
78 - Interogators:
79 -@@ -156,8 +156,8 @@ Interogators:
78 + Interrogators:
79 +@@ -156,8 +156,8 @@ Interrogators:
80 link:git-diff-helper.html[git-diff-helper]::
81 Generates patch format output for git-diff-*
82
t/t4100/t-apply-5.patch
+2 -2
@@ -185,8 +185,8 @@ diff a/Documentation/git.txt b/Documentation/git.txt
185 +link:git-ssh-pull.html[git-ssh-pull]::
186 Pulls from a remote repository over ssh connection
187
188 - Interogators:
189 -@@ -156,8 +156,8 @@ Interogators:
188 + Interrogators:
189 +@@ -156,8 +156,8 @@ Interrogators:
190 link:git-diff-helper.html[git-diff-helper]::
191 Generates patch format output for git-diff-*
192
t/t5545-push-options.sh
+1 -1
@@ -115,7 +115,7 @@ test_expect_success 'push options and submodules' '
115
116 git -C parent submodule add ../upstream workbench &&
117 git -C parent/workbench remote add up ../../upstream &&
118 - git -C parent commit -m "add submoule" &&
118 + git -C parent commit -m "add submodule" &&
119
120 test_commit -C parent/workbench two &&
121 git -C parent add workbench &&
t/t6036-recursive-corner-cases.sh
+2 -2
@@ -1532,7 +1532,7 @@ test_expect_success 'setup nested conflicts' '
1532 mv -f b_R1 b &&
1533 mv -f a_R1 a &&
1534 git add b a &&
1535 - test_tick && git commit -m "verson R1 of files" &&
1535 + test_tick && git commit -m "version R1 of files" &&
1536 git tag R1 &&
1537
1538 # Create first merge on left side
@@ -1696,7 +1696,7 @@ test_expect_success 'setup virtual merge base with nested conflicts' '
1696 git checkout R &&
1697 echo right >>content &&
1698 git add content &&
1699 - test_tick && git commit -m "verson R1 of content" &&
1699 + test_tick && git commit -m "version R1 of content" &&
1700 git tag R1 &&
1701
1702 # Create L2
t/t7030-verify-tag.sh
+7 -7
@@ -44,8 +44,8 @@ test_expect_success GPG 'create signed tags' '
44 test_expect_success GPGSM 'create signed tags x509 ' '
45 test_config gpg.format x509 &&
46 test_config user.signingkey $GIT_COMMITTER_EMAIL &&
47 - echo 9 >file && test_tick && git commit -a -m "nineth gpgsm-signed" &&
48 - git tag -s -m nineth nineth-signed-x509
47 + echo 9 >file && test_tick && git commit -a -m "ninth gpgsm-signed" &&
48 + git tag -s -m ninth ninth-signed-x509
49 '
50
51 test_expect_success GPG 'verify and show signatures' '
@@ -80,10 +80,10 @@ test_expect_success GPG 'verify and show signatures' '
80 '
81
82 test_expect_success GPGSM 'verify and show signatures x509' '
83 - git verify-tag nineth-signed-x509 2>actual &&
83 + git verify-tag ninth-signed-x509 2>actual &&
84 grep "Good signature from" actual &&
85 ! grep "BAD signature from" actual &&
86 - echo nineth-signed-x509 OK
86 + echo ninth-signed-x509 OK
87 '
88
89 test_expect_success GPG 'detect fudged signature' '
@@ -127,10 +127,10 @@ test_expect_success GPG 'verify signatures with --raw' '
127 '
128
129 test_expect_success GPGSM 'verify signatures with --raw x509' '
130 - git verify-tag --raw nineth-signed-x509 2>actual &&
130 + git verify-tag --raw ninth-signed-x509 2>actual &&
131 grep "GOODSIG" actual &&
132 ! grep "BADSIG" actual &&
133 - echo nineth-signed-x509 OK
133 + echo ninth-signed-x509 OK
134 '
135
136 test_expect_success GPG 'verify multiple tags' '
@@ -147,7 +147,7 @@ test_expect_success GPG 'verify multiple tags' '
147 '
148
149 test_expect_success GPGSM 'verify multiple tags x509' '
150 - tags="seventh-signed nineth-signed-x509" &&
150 + tags="seventh-signed ninth-signed-x509" &&
151 for i in $tags
152 do
153 git verify-tag -v --raw $i || return 1