Skip to content

Commit

Permalink
Can I get rid of the FUNNYNAME requirement?
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Newren <[email protected]>
  • Loading branch information
newren committed Jan 3, 2025
1 parent 83e483e commit 030d909
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions t/t1006-cat-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 030d909

Please sign in to comment.