Skip to content

Commit 0916e0f

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 02a6a13 commit 0916e0f

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
@@ -1010,4 +1010,15 @@ test_expect_success GPG 'export and import of doubly signed commit' '
10101010
fi
10111011
'
10121012

1013+
cat > expected << EOF
1014+
reset refs/heads/master
1015+
from $(git rev-parse master)
1016+
1017+
EOF
1018+
1019+
test_expect_failure 'refs are updated even if no commits need to be exported' '
1020+
git fast-export master..master > actual &&
1021+
test_cmp expected actual
1022+
'
1023+
10131024
test_done

0 commit comments

Comments
 (0)