Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 480cd59

Browse files
SRabbelierkasal
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 6b1282f commit 480cd59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t9350-fast-export.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,4 +504,15 @@ test_expect_success 'refs are updated even if no commits need to be exported' '
504504
test_cmp expected actual
505505
'
506506

507+
cat > expected << EOF
508+
reset refs/heads/master
509+
from $(git rev-parse master)
510+
511+
EOF
512+
513+
test_expect_failure 'refs are updated even if no commits need to be exported' '
514+
git fast-export master..master > actual &&
515+
test_cmp expected actual
516+
'
517+
507518
test_done

0 commit comments

Comments
 (0)