X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9300-fast-import.sh;h=f256475020549a157297481e21859e235a5cfcc1;hb=324b6b1678a3c1c6179f53fccf4e5fe2cef43240;hp=2a53640c5b29c19a2327570148638dbf94bc2afa;hpb=c56dce3b811400e73e7b68464cf229aa0edb9d8f;p=git.git diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 2a53640c5..f25647502 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -2197,6 +2197,48 @@ test_expect_success 'R: quiet option results in no stats being output' ' test_cmp empty output ' +test_expect_success 'R: feature done means terminating "done" is mandatory' ' + echo feature done | test_must_fail git fast-import && + test_must_fail git fast-import --done expect <<-\EOF && + OBJID + :000000 100644 OBJID OBJID A hello.c + :000000 100644 OBJID OBJID A hello2.c + EOF + git fast-import <<-EOF && + commit refs/heads/done-ends + committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE + data <actual && + test_cmp expect actual +' + cat >input <