From: Junio C Hamano Date: Wed, 30 May 2018 05:04:04 +0000 (+0900) Subject: Merge branch 'sg/t6500-no-redirect-of-stdin' X-Git-Tag: v2.18.0-rc0~30 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0e7af5f6d16a4cef7d981ac9631f35d146904eca?hp=-c Merge branch 'sg/t6500-no-redirect-of-stdin' Test cleanup. * sg/t6500-no-redirect-of-stdin: t6050-replace: don't disable stdin for the whole test script --- 0e7af5f6d16a4cef7d981ac9631f35d146904eca diff --combined t/t6050-replace.sh index d174bfed30,199fbc78a3..aa3e249639 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@@ -4,8 -4,6 +4,6 @@@ # test_description='Tests replace refs functionality' - exec .git/info/grafts && + git replace --convert-graft-file && + test_path_is_missing .git/info/grafts && + + : verify that the history is now "grafted" && + git rev-list HEAD >out && + test_line_count = 4 out && + + : create invalid graft file and verify that it is not deleted && + test_when_finished "rm -f .git/info/grafts" && + echo $EMPTY_BLOB $EMPTY_TREE >.git/info/grafts && + test_must_fail git replace --convert-graft-file 2>err && + test_i18ngrep "$EMPTY_BLOB $EMPTY_TREE" err && + test_i18ngrep "$EMPTY_BLOB $EMPTY_TREE" .git/info/grafts +' + test_done