Merge branch 'ak/more-typofixes'

More typofixes.

* ak/more-typofixes:
  t: fix typos
This commit is contained in:
Taylor Blau
2024-11-01 12:53:29 -04:00
26 changed files with 37 additions and 37 deletions

View File

@@ -74,7 +74,7 @@ test_rebase 'G F C D B A' --onto D main
test_rebase 'G F C B A' --keep-base refs/heads/main test_rebase 'G F C B A' --keep-base refs/heads/main
test_rebase 'G F C B A' --keep-base main test_rebase 'G F C B A' --keep-base main
test_expect_success 'git rebase --fork-point with ambigous refname' ' test_expect_success 'git rebase --fork-point with ambiguous refname' '
git checkout main && git checkout main &&
git checkout -b one && git checkout -b one &&
git checkout side && git checkout side &&

View File

@@ -43,7 +43,7 @@ test_expect_success 'cherry-pick conflict with --rerere-autoupdate' '
git reset --hard bar-dev git reset --hard bar-dev
' '
test_expect_success 'cherry-pick conflict repsects rerere.autoUpdate' ' test_expect_success 'cherry-pick conflict respects rerere.autoUpdate' '
test_config rerere.autoUpdate true && test_config rerere.autoUpdate true &&
test_must_fail git cherry-pick foo..bar-main && test_must_fail git cherry-pick foo..bar-main &&
test_cmp foo-expect foo && test_cmp foo-expect foo &&

View File

@@ -82,7 +82,7 @@ test_crlf_subject_body_and_contents() {
test_expect_success 'Setup refs with commit and tag messages using CRLF' ' test_expect_success 'Setup refs with commit and tag messages using CRLF' '
test_commit inital && test_commit initial &&
create_crlf_refs create_crlf_refs
' '

View File

@@ -15,7 +15,7 @@ TEST_PASSES_SANITIZE_LEAK=true
# 1) blob_2 is a delta with blob_1 for base and blob_3 is a delta with blob2 # 1) blob_2 is a delta with blob_1 for base and blob_3 is a delta with blob2
# for base, such that blob_3 delta depth is 2; # for base, such that blob_3 delta depth is 2;
# #
# 2) the bulk of object data is uncompressible so the text part remains # 2) the bulk of object data is incompressible so the text part remains
# visible; # visible;
# #
# 3) object header is always 2 bytes. # 3) object header is always 2 bytes.

View File

@@ -203,7 +203,7 @@ then
graph_git_behavior 'alternate: commit 13 vs 6' commits/13 origin/commits/6 "fork" graph_git_behavior 'alternate: commit 13 vs 6' commits/13 origin/commits/6 "fork"
fi fi
test_expect_success 'test merge stragety constants' ' test_expect_success 'test merge strategy constants' '
git clone . merge-2 && git clone . merge-2 &&
( (
cd merge-2 && cd merge-2 &&

View File

@@ -690,7 +690,7 @@ test_expect_success 'cruft --local drops unreachable objects' '
test_when_finished "rm -fr alternate repo" && test_when_finished "rm -fr alternate repo" &&
test_commit -C alternate base && test_commit -C alternate base &&
# Pack all objects in alterate so that the cruft repack in "repo" sees # Pack all objects in alternate so that the cruft repack in "repo" sees
# the object it dropped due to `--local` as packed. Otherwise this # the object it dropped due to `--local` as packed. Otherwise this
# object would not appear packed anywhere (since it is not packed in # object would not appear packed anywhere (since it is not packed in
# alternate and likewise not part of the cruft pack in the other repo # alternate and likewise not part of the cruft pack in the other repo

View File

@@ -10,7 +10,7 @@ test_expect_success "setup proc-receive hook (ft, $PROTOCOL)" '
# Refs of upstream : main(A) # Refs of upstream : main(A)
# Refs of workbench: main(A) tags/v123 # Refs of workbench: main(A) tags/v123
# git push : refs/for/main/topic(B) # git push : refs/for/main/topic(B)
test_expect_success "proc-receive: fall throught, let receive-pack to execute ($PROTOCOL)" ' test_expect_success "proc-receive: fall through, let receive-pack to execute ($PROTOCOL)" '
git -C workbench push origin \ git -C workbench push origin \
$B:refs/for/main/topic \ $B:refs/for/main/topic \
>out 2>&1 && >out 2>&1 &&

View File

@@ -10,7 +10,7 @@ test_expect_success "setup proc-receive hook (fall-through, $PROTOCOL/porcelain)
# Refs of upstream : main(A) # Refs of upstream : main(A)
# Refs of workbench: main(A) tags/v123 # Refs of workbench: main(A) tags/v123
# git push : refs/for/main/topic(B) # git push : refs/for/main/topic(B)
test_expect_success "proc-receive: fall throught, let receive-pack to execute ($PROTOCOL/porcelain)" ' test_expect_success "proc-receive: fall through, let receive-pack to execute ($PROTOCOL/porcelain)" '
git -C workbench push --porcelain origin \ git -C workbench push --porcelain origin \
$B:refs/for/main/topic \ $B:refs/for/main/topic \
>out 2>&1 && >out 2>&1 &&

View File

@@ -418,7 +418,7 @@ test_expect_success 'in_vain not triggered before first ACK' '
test_grep "remote: Total 3 " log test_grep "remote: Total 3 " log
' '
test_expect_success 'in_vain resetted upon ACK' ' test_expect_success 'in_vain reset upon ACK' '
test_when_finished rm -f log trace2 && test_when_finished rm -f log trace2 &&
rm -rf myserver myclient && rm -rf myserver myclient &&
git init myserver && git init myserver &&

View File

@@ -147,7 +147,7 @@ test_expect_success 'push from/to new branch fails with upstream and simple ' '
# - the default push succeeds # - the default push succeeds
# #
# A previous test expected this to fail, but for the wrong reasons: # A previous test expected this to fail, but for the wrong reasons:
# it expected a fail becaause the branch is new and cannot be pushed, but # it expected to fail because the branch is new and cannot be pushed, but
# in fact it was failing because of an ambiguous remote # in fact it was failing because of an ambiguous remote
# #
test_expect_failure 'push from/to new branch fails with matching ' ' test_expect_failure 'push from/to new branch fails with matching ' '

View File

@@ -204,7 +204,7 @@ test_expect_success 'push recurse-submodules last one wins on command line' '
cd work/gar/bage && cd work/gar/bage &&
>recurse-check-on-command-line-overriding-earlier-command-line && >recurse-check-on-command-line-overriding-earlier-command-line &&
git add recurse-check-on-command-line-overriding-earlier-command-line && git add recurse-check-on-command-line-overriding-earlier-command-line &&
git commit -m "Recurse on command-line overridiing earlier command-line junk" git commit -m "Recurse on command-line overriding earlier command-line junk"
) && ) &&
( (
cd work && cd work &&

View File

@@ -945,7 +945,7 @@ test_expect_success 'creationToken heuristic with failed downloads (clone)' '
--bundle-uri="$HTTPD_URL/bundle-list" \ --bundle-uri="$HTTPD_URL/bundle-list" \
"$HTTPD_URL/smart/fetch.git" download-3 && "$HTTPD_URL/smart/fetch.git" download-3 &&
# As long as we have continguous successful downloads, # As long as we have contiguous successful downloads,
# we _do_ set these configs. # we _do_ set these configs.
test_cmp_config -C download-3 "$HTTPD_URL/bundle-list" fetch.bundleuri && test_cmp_config -C download-3 "$HTTPD_URL/bundle-list" fetch.bundleuri &&
test_cmp_config -C download-3 3 fetch.bundlecreationtoken && test_cmp_config -C download-3 3 fetch.bundlecreationtoken &&
@@ -1189,7 +1189,7 @@ test_expect_success 'creationToken heuristic with failed downloads (fetch)' '
GIT_TRACE2_EVENT="$(pwd)/trace-fetch-3.txt" \ GIT_TRACE2_EVENT="$(pwd)/trace-fetch-3.txt" \
git -C fetch-3 fetch origin && git -C fetch-3 fetch origin &&
# As long as we have continguous successful downloads, # As long as we have contiguous successful downloads,
# we _do_ set the maximum creation token. # we _do_ set the maximum creation token.
test_cmp_config -C fetch-3 6 fetch.bundlecreationtoken && test_cmp_config -C fetch-3 6 fetch.bundlecreationtoken &&

View File

@@ -608,34 +608,34 @@ test_expect_success 'merge-msg with "merging" an annotated tag' '
git checkout main^0 && git checkout main^0 &&
git commit --allow-empty -m "One step ahead" && git commit --allow-empty -m "One step ahead" &&
git tag -a -m "An annotated one" annote HEAD && git tag -a -m "An annotated one" annotate HEAD &&
git checkout main && git checkout main &&
git fetch . annote && git fetch . annotate &&
git fmt-merge-msg <.git/FETCH_HEAD >actual && git fmt-merge-msg <.git/FETCH_HEAD >actual &&
{ {
cat <<-\EOF cat <<-\EOF
Merge tag '\''annote'\'' Merge tag '\''annotate'\''
An annotated one An annotated one
* tag '\''annote'\'': * tag '\''annotate'\'':
One step ahead One step ahead
EOF EOF
} >expected && } >expected &&
test_cmp expected actual && test_cmp expected actual &&
test_when_finished "git reset --hard" && test_when_finished "git reset --hard" &&
annote=$(git rev-parse annote) && annotate=$(git rev-parse annotate) &&
git merge --no-commit --no-ff $annote && git merge --no-commit --no-ff $annotate &&
{ {
cat <<-EOF cat <<-EOF
Merge tag '\''$annote'\'' Merge tag '\''$annotate'\''
An annotated one An annotated one
* tag '\''$annote'\'': * tag '\''$annotate'\'':
One step ahead One step ahead
EOF EOF
} >expected && } >expected &&

View File

@@ -14,7 +14,7 @@ test_expect_success 'setup some history and refs' '
git checkout -b side && git checkout -b side &&
test_commit four && test_commit four &&
git tag -m "An annotated tag" annotated-tag && git tag -m "An annotated tag" annotated-tag &&
git tag -m "Annonated doubly" doubly-annotated-tag annotated-tag && git tag -m "Annotated doubly" doubly-annotated-tag annotated-tag &&
# Note that these "signed" tags might not actually be signed. # Note that these "signed" tags might not actually be signed.
# Tests which care about the distinction should be marked # Tests which care about the distinction should be marked
@@ -343,7 +343,7 @@ test_expect_success 'check `%(contents:lines=1)`' '
side |four side |four
odd/spot |three odd/spot |three
annotated-tag |An annotated tag annotated-tag |An annotated tag
doubly-annotated-tag |Annonated doubly doubly-annotated-tag |Annotated doubly
doubly-signed-tag |Signed doubly doubly-signed-tag |Signed doubly
four |four four |four
one |one one |one
@@ -379,7 +379,7 @@ test_expect_success 'check `%(contents:lines=99999)`' '
side |four side |four
odd/spot |three odd/spot |three
annotated-tag |An annotated tag annotated-tag |An annotated tag
doubly-annotated-tag |Annonated doubly doubly-annotated-tag |Annotated doubly
doubly-signed-tag |Signed doubly doubly-signed-tag |Signed doubly
four |four four |four
one |one one |one

View File

@@ -88,7 +88,7 @@ test_expect_success 'result contains a conflict' '
' '
test_expect_success 'virtual trees were processed' ' test_expect_success 'virtual trees were processed' '
# TODO: fragile test, relies on ambigious merge-base resolution # TODO: fragile test, relies on ambiguous merge-base resolution
git ls-files --stage >out && git ls-files --stage >out &&
cat >expect <<-EOF && cat >expect <<-EOF &&

View File

@@ -65,7 +65,7 @@ Please move or remove them before you merge.
Aborting Aborting
EOF EOF
test_expect_success 'untracked files or local changes ovewritten by merge' ' test_expect_success 'untracked files or local changes overwritten by merge' '
git add two && git add two &&
git add three && git add three &&
git add four && git add four &&

View File

@@ -116,7 +116,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag succeeds with tag date
! grep "${GPGSSH_BAD_SIGNATURE}" actual ! grep "${GPGSSH_BAD_SIGNATURE}" actual
' '
test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag failes with tag date outside of key validity' ' test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag fails with tag date outside of key validity' '
test_config gpg.ssh.allowedSignersFile "${GPGSSH_ALLOWED_SIGNERS}" && test_config gpg.ssh.allowedSignersFile "${GPGSSH_ALLOWED_SIGNERS}" &&
test_must_fail git verify-tag timeboxedinvalid-signed 2>actual && test_must_fail git verify-tag timeboxedinvalid-signed 2>actual &&
! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual ! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual

View File

@@ -77,7 +77,7 @@ test_expect_success 'before initial commit, things added (-z)' '
test_cmp expect actual test_cmp expect actual
' '
test_expect_success 'make first commit, comfirm HEAD oid and branch' ' test_expect_success 'make first commit, confirm HEAD oid and branch' '
git commit -m initial && git commit -m initial &&
H0=$(git rev-parse HEAD) && H0=$(git rev-parse HEAD) &&
cat >expect <<-EOF && cat >expect <<-EOF &&

View File

@@ -22,7 +22,7 @@ test_expect_success 'setup' '
git -C super submodule add ../sub sub2 && git -C super submodule add ../sub sub2 &&
# Remove submodule.<name>.active entries in order to test in an # Remove submodule.<name>.active entries in order to test in an
# environment where only URLs are present in the conifg # environment where only URLs are present in the config
git -C super config --unset submodule.sub1.active && git -C super config --unset submodule.sub1.active &&
git -C super config --unset submodule.sub2.active && git -C super config --unset submodule.sub2.active &&

View File

@@ -857,7 +857,7 @@ test_expect_success 'using "--where after" with "--no-where"' '
# the hardcoded default (in WHERE_END) assuming the absence of .gitconfig). # the hardcoded default (in WHERE_END) assuming the absence of .gitconfig).
# Here, the "start" setting of trailer.where is respected, so the new "Acked-by" # Here, the "start" setting of trailer.where is respected, so the new "Acked-by"
# and "Bug" trailers are placed at the beginning, and not at the end which is # and "Bug" trailers are placed at the beginning, and not at the end which is
# the harcoded default. # the hardcoded default.
test_expect_success 'using "--where after" with "--no-where" defaults to configuration' ' test_expect_success 'using "--where after" with "--no-where" defaults to configuration' '
test_config trailer.ack.key "Acked-by= " && test_config trailer.ack.key "Acked-by= " &&
test_config trailer.bug.key "Bug #" && test_config trailer.bug.key "Bug #" &&
@@ -881,7 +881,7 @@ test_expect_success 'using "--where after" with "--no-where" defaults to configu
# immediately after it. For the next trailer (Bug #42), we default to using the # immediately after it. For the next trailer (Bug #42), we default to using the
# hardcoded WHERE_END because we don't have any "trailer.where" or # hardcoded WHERE_END because we don't have any "trailer.where" or
# "trailer.bug.where" configured. # "trailer.bug.where" configured.
test_expect_success 'using "--no-where" defaults to harcoded default if nothing configured' ' test_expect_success 'using "--no-where" defaults to hardcoded default if nothing configured' '
test_config trailer.ack.key "Acked-by= " && test_config trailer.ack.key "Acked-by= " &&
test_config trailer.bug.key "Bug #" && test_config trailer.bug.key "Bug #" &&
test_config trailer.separators ":=#" && test_config trailer.separators ":=#" &&

View File

@@ -765,7 +765,7 @@ done
# by the FSMonitor response to skip those recursive calls. That is, # by the FSMonitor response to skip those recursive calls. That is,
# even if FSMonitor says that the mtime of the submodule directory # even if FSMonitor says that the mtime of the submodule directory
# hasn't changed and it could be implicitly marked valid, we must # hasn't changed and it could be implicitly marked valid, we must
# not take that shortcut. We need to force the recusion into the # not take that shortcut. We need to force the recursion into the
# submodule so that we get a summary of the status *within* the # submodule so that we get a summary of the status *within* the
# submodule. # submodule.

View File

@@ -281,7 +281,7 @@ test_expect_success '--rebase overrides pull.ff unset' '
test_does_rebase pull --rebase test_does_rebase pull --rebase
' '
# Group 4: --no-rebase heeds pull.ff=!only or explict --ff or --no-ff # Group 4: --no-rebase heeds pull.ff=!only or explicit --ff or --no-ff
test_expect_success '--no-rebase works with --no-ff' ' test_expect_success '--no-rebase works with --no-ff' '
test_does_merge_when_ff_possible pull --no-rebase --no-ff test_does_merge_when_ff_possible pull --no-rebase --no-ff

View File

@@ -18,7 +18,7 @@ test_expect_success setup '
echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
' '
test_expect_success 're-packing repository with itsself as alternate' ' test_expect_success 're-packing repository with itself as alternate' '
git repack -adl && git repack -adl &&
git fsck git fsck
' '

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
test_description='blaming trough history with topic branches' test_description='blaming through history with topic branches'
TEST_PASSES_SANITIZE_LEAK=true TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh . ./test-lib.sh

View File

@@ -65,7 +65,7 @@ test_expect_success 'autocorrect can be declined altogether' '
test_expect_success 'autocorrect works in work tree created from bare repo' ' test_expect_success 'autocorrect works in work tree created from bare repo' '
git clone --bare . bare.git && git clone --bare . bare.git &&
git -C bare.git worktree add ../worktree && git -C bare.git worktree add ../worktree &&
git -C worktree -c help.autocorrect=immediate stauts git -C worktree -c help.autocorrect=immediate status
' '
test_done test_done