From 030d909735d533c0830f4daebad73be56c609730 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Fri, 3 Jan 2025 09:52:09 -0800 Subject: [PATCH] Can I get rid of the FUNNYNAME requirement? Signed-off-by: Elijah Newren --- t/t1006-cat-file.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh index 84191ee68a13d9..833457986825b7 100755 --- a/t/t1006-cat-file.sh +++ b/t/t1006-cat-file.sh @@ -241,7 +241,8 @@ test_expect_success "setup" ' git config extensions.objectformat $test_hash_algo && git config extensions.compatobjectformat $test_compat_hash_algo && echo_without_newline "$hello_content" > hello && - git update-index --add hello + git update-index --add hello && + git commit -m "add hello file" ' run_blob_tests () { @@ -603,18 +604,18 @@ test_expect_success FUNNYNAMES '--batch-check, -Z with newline in input' ' test_cmp expect actual ' -test_expect_success FUNNYNAMES 'setup with curly braches in input' ' - git branch "foo{bar" && - git branch "foo@" +test_expect_success 'setup with curly braches in input' ' + git branch "foo{bar" HEAD && + git branch "foo@" HEAD ' -test_expect_success FUNNYNAMES 'object reference with curly brace' ' +test_expect_success 'object reference with curly brace' ' git cat-file -p "foo{bar:hello" >actual && git cat-file -p HEAD:hello >expect && test_cmp expect actual ' -test_expect_success FUNNYNAMES 'object reference with at-sign' ' +test_expect_success 'object reference with at-sign' ' git cat-file -p "foo@@{0}:hello" >actual && git cat-file -p HEAD:hello >expect && test_cmp expect actual