{"thread":{"id":"59280","subject":"[PATCH] [GSoC]t7501:modernize the style of test body","startedAt":"2023-02-21T12:28:32Z","lastAt":"2023-02-21T12:28:32Z","messageCount":1,"participants":["ashutosh.pandeyhlr007@gmail.com"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"472373","messageId":"20230221122816.10236-1-ashutosh.pandeyhlr007@gmail.com","threadId":"59280","inReplyTo":null,"subject":"[PATCH] [GSoC]t7501:modernize the style of test body","fromName":"","fromEmail":"ashutosh.pandeyhlr007@gmail.com","sentAt":"2023-02-21T12:28:16Z","receivedAt":"2023-02-21T12:28:32Z","isPatch":true,"sender":{"key":"ashutosh.pandeyhlr007@gmail.com","avatar":"https://avatars.githubusercontent.com/u/57610394?v=4"},"body":"From: Ashutosh Pandey <ashutosh.pandeyhlr007@gmail.com>\n\nsome of the test body followed the old style of test body which isn't\nconsistent with the new rules which is that multiple commands on one\nline should be split across multiple lines this patch accomplishes that\nin this test script that is t7501.\n\nSigned-off-by: Ashutosh Pandey <ashutosh.pandeyhlr007@gmail.com>\n---\n t/t7501-commit-basic-functionality.sh | 20 +++++++++++++++-----\n 1 file changed, 15 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t7501-commit-basic-functionality.sh b/t/t7501-commit-basic-functionality.sh\nindex fb5417d5e7..c31d6f53f4 100755\n--- a/t/t7501-commit-basic-functionality.sh\n+++ b/t/t7501-commit-basic-functionality.sh\n@@ -33,12 +33,16 @@ test_expect_success 'setup: initial commit' '\n '\n \n test_expect_success '-m and -F do not mix' '\n-\tgit checkout HEAD file && echo >>file && git add file &&\n+\tgit checkout HEAD file &&\n+\techo >>file && \n+\tgit add file &&\n \ttest_must_fail git commit -m foo -m bar -F file\n '\n \n test_expect_success '-m and -C do not mix' '\n-\tgit checkout HEAD file && echo >>file && git add file &&\n+\tgit checkout HEAD file &&\n+\techo >>file && \n+\tgit add file &&\n \ttest_must_fail git commit -C HEAD -m illegal\n '\n \n@@ -134,18 +138,24 @@ test_expect_success 'empty commit message' '\n '\n \n test_expect_success 'template \"emptyness\" check does not kick in with -F' '\n-\tgit checkout HEAD file && echo >>file && git add file &&\n+\tgit checkout HEAD file &&\n+\techo >>file && \n+\tgit add file &&\n \tgit commit -t file -F file\n '\n \n test_expect_success 'template \"emptyness\" check' '\n-\tgit checkout HEAD file && echo >>file && git add file &&\n+\tgit checkout HEAD file && \n+\techo >>file && \n+\tgit add file &&\n \ttest_must_fail git commit -t file 2>err &&\n \ttest_i18ngrep \"did not edit\" err\n '\n \n test_expect_success 'setup: commit message from file' '\n-\tgit checkout HEAD file && echo >>file && git add file &&\n+\tgit checkout HEAD file && \n+\techo >>file && \n+\tgit add file &&\n \techo this is the commit message, coming from a file >msg &&\n \tgit commit -F msg -a\n '\n\nbase-commit: d9d677b2d8cc5f70499db04e633ba7a400f64cbf\n-- \n2.39.2\n\n"}]}