t9350: point out that refs are not updated correctly

This happens only when the corresponding commits are not exported in
the current fast-export run. This can happen either when the relevant
commit is already marked, or when the commit is explicitly marked
as UNINTERESTING with a negative ref by another argument.

This breaks fast-export basec remote helpers.

Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
This commit is contained in:
Sverre Rabbelier
2011-07-24 15:54:04 +02:00
committed by Git for Windows Build Agent
parent 1c54c49c5e
commit 7a10191c68

View File

@@ -1010,4 +1010,15 @@ test_expect_success GPG,RUST 'export and import of doubly signed commit' '
fi
'
test_expect_failure 'refs are updated even if no commits need to be exported' '
cat > expected <<-EOF &&
reset refs/heads/main
from $(git rev-parse main)
EOF
git fast-export main..main > actual &&
test_cmp expected actual
'
test_done