diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index 784d68b6e5..301f61927f 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -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