Skip to content

Commit c68e8af

Browse files
committed
t0610: pass fully qualified branch name to update-ref
We create several sample branches by doing "git update-ref branch-$i". But update-ref requires a fully qualified name, so this is creating "branch-$i" at the root of the ref namespace, not actual branches in "refs/heads/". The test doesn't care either way. It is about reftable compaction, and the ref creation is just to trigger the creation of new reftables. But to future-proof it against update-ref getting more picky about creating top-level refs, let's do the more normal thing and create actual branches.
1 parent 568b17a commit c68e8af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

t/t0610-reftable-basics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ test_expect_success 'ref transaction: env var disables compaction' '
347347
for i in $(test_seq $iterations)
348348
do
349349
GIT_TEST_REFTABLE_AUTOCOMPACTION=false \
350-
git -C repo update-ref branch-$i HEAD || return 1
350+
git -C repo update-ref refs/heads/branch-$i HEAD || return 1
351351
done &&
352352
test_line_count = $expected repo/.git/reftable/tables.list &&
353353
354-
git -C repo update-ref foo HEAD &&
354+
git -C repo update-ref refs/heads/foo HEAD &&
355355
test_line_count -lt $expected repo/.git/reftable/tables.list
356356
'
357357

0 commit comments

Comments
 (0)