Skip to content

Commit 030d909

Browse files
committed
Can I get rid of the FUNNYNAME requirement?
Signed-off-by: Elijah Newren <newren@gmail.com>
1 parent 83e483e commit 030d909

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

t/t1006-cat-file.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ test_expect_success "setup" '
241241
git config extensions.objectformat $test_hash_algo &&
242242
git config extensions.compatobjectformat $test_compat_hash_algo &&
243243
echo_without_newline "$hello_content" > hello &&
244-
git update-index --add hello
244+
git update-index --add hello &&
245+
git commit -m "add hello file"
245246
'
246247

247248
run_blob_tests () {
@@ -603,18 +604,18 @@ test_expect_success FUNNYNAMES '--batch-check, -Z with newline in input' '
603604
test_cmp expect actual
604605
'
605606

606-
test_expect_success FUNNYNAMES 'setup with curly braches in input' '
607-
git branch "foo{bar" &&
608-
git branch "foo@"
607+
test_expect_success 'setup with curly braches in input' '
608+
git branch "foo{bar" HEAD &&
609+
git branch "foo@" HEAD
609610
'
610611

611-
test_expect_success FUNNYNAMES 'object reference with curly brace' '
612+
test_expect_success 'object reference with curly brace' '
612613
git cat-file -p "foo{bar:hello" >actual &&
613614
git cat-file -p HEAD:hello >expect &&
614615
test_cmp expect actual
615616
'
616617

617-
test_expect_success FUNNYNAMES 'object reference with at-sign' '
618+
test_expect_success 'object reference with at-sign' '
618619
git cat-file -p "foo@@{0}:hello" >actual &&
619620
git cat-file -p HEAD:hello >expect &&
620621
test_cmp expect actual

0 commit comments

Comments
 (0)