Skip to content

Commit

Permalink
t9350: point out that refs are not updated correctly
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
SRabbelier authored and dscho committed Jan 7, 2025
1 parent b48c1c1 commit 8c8a207
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t9350-fast-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -801,4 +801,15 @@ test_expect_success 'fast-export handles --end-of-options' '
test_cmp expect actual
'

cat > expected << EOF
reset refs/heads/master
from $(git rev-parse master)
EOF

test_expect_failure 'refs are updated even if no commits need to be exported' '
git fast-export master..master > actual &&
test_cmp expected actual
'

test_done

0 comments on commit 8c8a207

Please sign in to comment.