Skip to content

Commit 193b701

Browse files
SRabbelierdscho
authored andcommitted
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 <[email protected]>
1 parent 787bfe4 commit 193b701

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t9350-fast-export.sh

+11
Original file line numberDiff line numberDiff line change
@@ -791,4 +791,15 @@ test_expect_success 'fast-export --first-parent outputs all revisions output by
791791
)
792792
'
793793

794+
cat > expected << EOF
795+
reset refs/heads/master
796+
from $(git rev-parse master)
797+
798+
EOF
799+
800+
test_expect_failure 'refs are updated even if no commits need to be exported' '
801+
git fast-export master..master > actual &&
802+
test_cmp expected actual
803+
'
804+
794805
test_done

0 commit comments

Comments
 (0)