Skip to content

Commit 0cb0e14

Browse files
Nanako Shiraishigitster
authored andcommitted
tests: use "git xyzzy" form (t0000 - t3599)
Converts tests between t0050-t3903. Signed-off-by: Nanako Shiraishi <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e44c93 commit 0cb0e14

26 files changed

+103
-103
lines changed

t/t0050-filesystem.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $test_case 'add (with different case)' '
8585
rm camelcase &&
8686
echo 1 >CamelCase &&
8787
git add CamelCase &&
88-
test $(git-ls-files | grep -i camelcase | wc -l) = 1
88+
test $(git ls-files | grep -i camelcase | wc -l) = 1
8989
9090
'
9191

t/t1007-hash-object.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
test_description="git-hash-object"
3+
test_description="git hash-object"
44

55
. ./test-lib.sh
66

t/t1200-tutorial.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test_expect_success 'git whatchanged -p --root' 'cmp whatchanged.expect whatchan
7878
git tag my-first-tag
7979
test_expect_success 'git tag my-first-tag' 'cmp .git/refs/heads/master .git/refs/tags/my-first-tag'
8080

81-
# TODO: test git-clone
81+
# TODO: test git clone
8282

8383
git checkout -b mybranch
8484
test_expect_success 'git checkout -b mybranch' 'cmp .git/refs/heads/master .git/refs/heads/mybranch'

t/t1303-wacky-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test_expect_success 'add key in different section' '
3535
'
3636

3737
SECTION="test.q\"s\\sq'sp e.key"
38-
test_expect_success 'make sure git-config escapes section names properly' '
38+
test_expect_success 'make sure git config escapes section names properly' '
3939
git config "$SECTION" bar &&
4040
check "$SECTION" bar
4141
'

t/t1400-update-ref.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,21 +228,21 @@ test_expect_success \
228228
'echo TEST >F &&
229229
git add F &&
230230
GIT_AUTHOR_DATE="2005-05-26 23:30" \
231-
GIT_COMMITTER_DATE="2005-05-26 23:30" git-commit -m add -a &&
231+
GIT_COMMITTER_DATE="2005-05-26 23:30" git commit -m add -a &&
232232
h_TEST=$(git rev-parse --verify HEAD)
233233
echo The other day this did not work. >M &&
234234
echo And then Bob told me how to fix it. >>M &&
235235
echo OTHER >F &&
236236
GIT_AUTHOR_DATE="2005-05-26 23:41" \
237-
GIT_COMMITTER_DATE="2005-05-26 23:41" git-commit -F M -a &&
237+
GIT_COMMITTER_DATE="2005-05-26 23:41" git commit -F M -a &&
238238
h_OTHER=$(git rev-parse --verify HEAD) &&
239239
GIT_AUTHOR_DATE="2005-05-26 23:44" \
240-
GIT_COMMITTER_DATE="2005-05-26 23:44" git-commit --amend &&
240+
GIT_COMMITTER_DATE="2005-05-26 23:44" git commit --amend &&
241241
h_FIXED=$(git rev-parse --verify HEAD) &&
242242
echo Merged initial commit and a later commit. >M &&
243243
echo $h_TEST >.git/MERGE_HEAD &&
244244
GIT_AUTHOR_DATE="2005-05-26 23:45" \
245-
GIT_COMMITTER_DATE="2005-05-26 23:45" git-commit -F M &&
245+
GIT_COMMITTER_DATE="2005-05-26 23:45" git commit -F M &&
246246
h_MERGED=$(git rev-parse --verify HEAD) &&
247247
rm -f M'
248248

@@ -253,7 +253,7 @@ $h_OTHER $h_FIXED $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117151040 +0000 co
253253
$h_FIXED $h_MERGED $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117151100 +0000 commit (merge): Merged initial commit and a later commit.
254254
EOF
255255
test_expect_success \
256-
'git-commit logged updates' \
256+
'git commit logged updates' \
257257
"diff expect .git/logs/$m"
258258
unset h_TEST h_OTHER h_FIXED h_MERGED
259259

t/t1503-rev-parse-verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ add_line_into_file()
2323
fi
2424

2525
test_tick
26-
git-commit --quiet -m "$MSG" $_file
26+
git commit --quiet -m "$MSG" $_file
2727
}
2828

2929
HASH1=

t/t2005-checkout-index-symlinks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ file if core.symlinks is false.'
1313
test_expect_success \
1414
'preparation' '
1515
git config core.symlinks false &&
16-
l=$(echo -n file | git-hash-object -t blob -w --stdin) &&
16+
l=$(echo -n file | git hash-object -t blob -w --stdin) &&
1717
echo "120000 $l symlink" | git update-index --index-info'
1818

1919
test_expect_success \
@@ -23,6 +23,6 @@ test -f symlink'
2323

2424
test_expect_success \
2525
'the file must be the blob we added during the setup' '
26-
test "$(git-hash-object -t blob symlink)" = $l'
26+
test "$(git hash-object -t blob symlink)" = $l'
2727

2828
test_done

t/t2050-git-dir-relative.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ chmod +x .git/hooks/post-commit'
2626

2727
test_expect_success 'post-commit hook used ordinarily' '
2828
echo initial >top &&
29-
git-add top
30-
git-commit -m initial &&
29+
git add top
30+
git commit -m initial &&
3131
test -r "${COMMIT_FILE}"
3232
'
3333

t/t2101-update-index-reupdate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test_expect_success 'update-index --remove --again' \
4040
git ls-files -s >current &&
4141
cmp current expected'
4242

43-
test_expect_success 'first commit' 'git-commit -m initial'
43+
test_expect_success 'first commit' 'git commit -m initial'
4444

4545
cat > expected <<\EOF
4646
100644 53ab446c3f4e42ce9bb728a0ccb283a101be4979 0 dir1/file3

t/t2102-update-index-symlinks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ even if a plain file is in the working tree if core.symlinks is false.'
1313
test_expect_success \
1414
'preparation' '
1515
git config core.symlinks false &&
16-
l=$(echo -n file | git-hash-object -t blob -w --stdin) &&
16+
l=$(echo -n file | git hash-object -t blob -w --stdin) &&
1717
echo "120000 $l symlink" | git update-index --index-info'
1818

1919
test_expect_success \

0 commit comments

Comments
 (0)