{"thread":{"id":"55914","subject":"[PATCH] test: bisect-porcelain: whitespace cleanups","startedAt":"2021-06-13T03:08:38Z","lastAt":"2021-06-13T03:08:38Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"427202","messageId":"20210613030816.246225-1-felipe.contreras@gmail.com","threadId":"55914","inReplyTo":null,"subject":"[PATCH] test: bisect-porcelain: whitespace cleanups","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2021-06-13T03:08:16Z","receivedAt":"2021-06-13T03:08:38Z","isPatch":true,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\n---\n t/t6030-bisect-porcelain.sh | 48 ++++++++++++++++++-------------------\n 1 file changed, 24 insertions(+), 24 deletions(-)\n\ndiff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh\nindex a1baf4e451..eef4963e76 100755\n--- a/t/t6030-bisect-porcelain.sh\n+++ b/t/t6030-bisect-porcelain.sh\n@@ -13,20 +13,20 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME\n \n add_line_into_file()\n {\n-    _line=$1\n-    _file=$2\n-\n-    if [ -f \"$_file\" ]; then\n-        echo \"$_line\" >> $_file || return $?\n-        MSG=\"Add <$_line> into <$_file>.\"\n-    else\n-        echo \"$_line\" > $_file || return $?\n-        git add $_file || return $?\n-        MSG=\"Create file <$_file> with <$_line> inside.\"\n-    fi\n-\n-    test_tick\n-    git commit --quiet -m \"$MSG\" $_file\n+\t_line=$1\n+\t_file=$2\n+\n+\tif [ -f \"$_file\" ]; then\n+\t\techo \"$_line\" >> $_file || return $?\n+\t\tMSG=\"Add <$_line> into <$_file>.\"\n+\telse\n+\t\techo \"$_line\" > $_file || return $?\n+\t\tgit add $_file || return $?\n+\t\tMSG=\"Create file <$_file> with <$_line> inside.\"\n+\tfi\n+\n+\ttest_tick\n+\tgit commit --quiet -m \"$MSG\" $_file\n }\n \n HASH1=\n@@ -35,14 +35,14 @@ HASH3=\n HASH4=\n \n test_expect_success 'set up basic repo with 1 file (hello) and 4 commits' '\n-     add_line_into_file \"1: Hello World\" hello &&\n-     HASH1=$(git rev-parse --verify HEAD) &&\n-     add_line_into_file \"2: A new day for git\" hello &&\n-     HASH2=$(git rev-parse --verify HEAD) &&\n-     add_line_into_file \"3: Another new day for git\" hello &&\n-     HASH3=$(git rev-parse --verify HEAD) &&\n-     add_line_into_file \"4: Ciao for now\" hello &&\n-     HASH4=$(git rev-parse --verify HEAD)\n+\tadd_line_into_file \"1: Hello World\" hello &&\n+\tHASH1=$(git rev-parse --verify HEAD) &&\n+\tadd_line_into_file \"2: A new day for git\" hello &&\n+\tHASH2=$(git rev-parse --verify HEAD) &&\n+\tadd_line_into_file \"3: Another new day for git\" hello &&\n+\tHASH3=$(git rev-parse --verify HEAD) &&\n+\tadd_line_into_file \"4: Ciao for now\" hello &&\n+\tHASH4=$(git rev-parse --verify HEAD)\n '\n \n test_expect_success 'bisect starts with only one bad' '\n@@ -570,10 +570,10 @@ test_expect_success 'skipping away from skipped commit' '\n \tgit bisect start $PARA_HASH7 $HASH1 &&\n \tpara4=$(git rev-parse --verify HEAD) &&\n \ttest \"$para4\" = \"$PARA_HASH4\" &&\n-        git bisect skip &&\n+\tgit bisect skip &&\n \thash7=$(git rev-parse --verify HEAD) &&\n \ttest \"$hash7\" = \"$HASH7\" &&\n-        git bisect skip &&\n+\tgit bisect skip &&\n \tpara3=$(git rev-parse --verify HEAD) &&\n \ttest \"$para3\" = \"$PARA_HASH3\"\n '\n-- \n2.32.0\n\n"}]}