t9801: use --
in preparation for default branch rename
Seeing as we want to use `main` as the new default branch name used by `git init`, and that `main` is used as directory name in t9801, let's tighten the rev-list arguments to make it explicit when we are referring to a ref instead of a directory. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
2217230d53
commit
25ad0dc130
@ -67,7 +67,7 @@ test_expect_success 'import main, no branch detection' '
|
|||||||
(
|
(
|
||||||
cd "$git" &&
|
cd "$git" &&
|
||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 4 wc
|
test_line_count = 4 wc
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
@ -78,7 +78,7 @@ test_expect_success 'import branch1, no branch detection' '
|
|||||||
(
|
(
|
||||||
cd "$git" &&
|
cd "$git" &&
|
||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 2 wc
|
test_line_count = 2 wc
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
@ -89,7 +89,7 @@ test_expect_success 'import branch2, no branch detection' '
|
|||||||
(
|
(
|
||||||
cd "$git" &&
|
cd "$git" &&
|
||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 2 wc
|
test_line_count = 2 wc
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
@ -100,7 +100,7 @@ test_expect_success 'import depot, no branch detection' '
|
|||||||
(
|
(
|
||||||
cd "$git" &&
|
cd "$git" &&
|
||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 8 wc
|
test_line_count = 8 wc
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
@ -114,7 +114,7 @@ test_expect_success 'import depot, branch detection' '
|
|||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
|
|
||||||
# 4 main commits
|
# 4 main commits
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 4 wc &&
|
test_line_count = 4 wc &&
|
||||||
|
|
||||||
# 3 main, 1 integrate, 1 on branch2
|
# 3 main, 1 integrate, 1 on branch2
|
||||||
@ -137,7 +137,7 @@ test_expect_success 'import depot, branch detection, branchList branch definitio
|
|||||||
git log --oneline --graph --decorate --all &&
|
git log --oneline --graph --decorate --all &&
|
||||||
|
|
||||||
# 4 main commits
|
# 4 main commits
|
||||||
git rev-list master >wc &&
|
git rev-list master -- >wc &&
|
||||||
test_line_count = 4 wc &&
|
test_line_count = 4 wc &&
|
||||||
|
|
||||||
# 3 main, 1 integrate, 1 on branch2
|
# 3 main, 1 integrate, 1 on branch2
|
||||||
|
Reference in New Issue
Block a user