From patchwork Fri Feb 24 01:34:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9859BC64ED6 for ; Fri, 24 Feb 2023 01:37:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjBXBhD (ORCPT ); Thu, 23 Feb 2023 20:37:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjBXBhC (ORCPT ); Thu, 23 Feb 2023 20:37:02 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2741A48E35 for ; Thu, 23 Feb 2023 17:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=GUznP 5zL1umj9C1EysQAh/DchVShK+lEXckkdRBbQM4=; b=oGqfvwhTsBPW9jVYAh2Ei KcXCf90fBDfJsz0oQFb7HBjHx0QqDH3k4zOBqC6wt4IRpr0U40nUWXLFCzfhxCru /c6kcsCEJW2ZfQvh1KXmf5tp/3cf5qbby8Lmoc7CYz/I7p34a21lngyPVCTm2a1p a56WpEQg13nuUggeHQsMS8= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp19 (Coremail) with SMTP id R9xpCgB3LvuyFPhj_w4HFQ--.50957S5; Fri, 24 Feb 2023 09:36:58 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 1/3] t9700:fix title style Date: Fri, 24 Feb 2023 09:34:11 +0800 Message-Id: <20230224013413.1969003-2-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230224013413.1969003-1-18994118902@163.com> References: <20230224013413.1969003-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: R9xpCgB3LvuyFPhj_w4HFQ--.50957S5 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr47tF4ftF45JryxJFy5Arb_yoW3KFbEga 4kWF1DG347ZFn2qr1xAFsavFnrA347Gw1YkFnYgw1DAa47JrnYvF95GF1rAan8Ca93Cas3 Kws8Xr4rG3WIyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7VUj1rW5UUUUU== X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiZRog-l8ZXDaxuAAAsE Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org One title in t9700-perl-git.sh is in old style where the test_expect_success command and test title are written on separate lines. Combine the test_expect_success command and the title in one line. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index b105d6d9d5..3f6396ef63 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -13,9 +13,8 @@ skip_all_if_no_Test_More # set up test repository -test_expect_success \ - 'set up test repository' \ - 'echo "test file 1" > file1 && +test_expect_success 'set up test repository' ' + echo "test file 1" > file1 && echo "test file 2" > file2 && mkdir directory1 && echo "in directory1" >> directory1/file && From patchwork Fri Feb 24 01:34:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F7E6C678D5 for ; Fri, 24 Feb 2023 01:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbjBXBhF (ORCPT ); Thu, 23 Feb 2023 20:37:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjBXBhD (ORCPT ); Thu, 23 Feb 2023 20:37:03 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 813D13E090 for ; Thu, 23 Feb 2023 17:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=EtOcd mI1sd/hZfWmW6xKKc7llO/nJHcKdCqHA9cqIHQ=; b=LC1HQg98MgY1QSI2/Iigs 9UfRmfkZf5y2i0KdGC3Wwz0zTIkdFby1GxSbBe2Rg1k9kj19pMVxee9kch9LxjiV pNhDLkmr0lSiqzpDYf/VVHompZciIjUrPeJ08ngK6LJ4HIoJPPH39csfsfCr4VCB PAC4MHMmbkYG6T8OdXFUrA= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp19 (Coremail) with SMTP id R9xpCgB3LvuyFPhj_w4HFQ--.50957S6; Fri, 24 Feb 2023 09:36:59 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 2/3] t9700:change indents to TAB Date: Fri, 24 Feb 2023 09:34:12 +0800 Message-Id: <20230224013413.1969003-3-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230224013413.1969003-1-18994118902@163.com> References: <20230224013413.1969003-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: R9xpCgB3LvuyFPhj_w4HFQ--.50957S6 X-Coremail-Antispam: 1Uf129KBjvJXoWxArWrXw4kXryftr4rur4kJFb_yoW5GF45pF Wa9r1ayr1qqr13JwsxuFyxCrW7Ja1kCryDXrZxC3s3CrnYkr1xtF13Kr17XFyrXFnIqa1a ya4q9r15Ww4ag3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRRHqcUUUUU= X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiYxwg-laEN1ojWQAAsk Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The body of one test script in t9700-perl-git.sh is indented by spaces while others are indented by TAB.And test bodies should be indented with TAB, not spaces. Replace all space indents by TAB. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index 3f6396ef63..671875a3fc 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -14,35 +14,35 @@ skip_all_if_no_Test_More # set up test repository test_expect_success 'set up test repository' ' - echo "test file 1" > file1 && - echo "test file 2" > file2 && - mkdir directory1 && - echo "in directory1" >> directory1/file && - mkdir directory2 && - echo "in directory2" >> directory2/file && - git add . && - git commit -m "first commit" && - - echo "new file in subdir 2" > directory2/file2 && - git add . && - git commit -m "commit in directory2" && - - echo "changed file 1" > file1 && - git commit -a -m "second commit" && - - git config --add color.test.slot1 green && - git config --add test.string value && - git config --add test.dupstring value1 && - git config --add test.dupstring value2 && - git config --add test.booltrue true && - git config --add test.boolfalse no && - git config --add test.boolother other && - git config --add test.int 2k && - git config --add test.path "~/foo" && - git config --add test.pathexpanded "$HOME/foo" && - git config --add test.pathmulti foo && - git config --add test.pathmulti bar - ' + echo "test file 1" > file1 && + echo "test file 2" > file2 && + mkdir directory1 && + echo "in directory1" >> directory1/file && + mkdir directory2 && + echo "in directory2" >> directory2/file && + git add . && + git commit -m "first commit" && + + echo "new file in subdir 2" > directory2/file2 && + git add . && + git commit -m "commit in directory2" && + + echo "changed file 1" > file1 && + git commit -a -m "second commit" && + + git config --add color.test.slot1 green && + git config --add test.string value && + git config --add test.dupstring value1 && + git config --add test.dupstring value2 && + git config --add test.booltrue true && + git config --add test.boolfalse no && + git config --add test.boolother other && + git config --add test.int 2k && + git config --add test.path "~/foo" && + git config --add test.pathexpanded "$HOME/foo" && + git config --add test.pathmulti foo && + git config --add test.pathmulti bar +' test_expect_success 'set up bare repository' ' git init --bare bare.git From patchwork Fri Feb 24 01:34:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi <18994118902@163.com> X-Patchwork-Id: 13150882 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4A4FC61DA4 for ; Fri, 24 Feb 2023 01:37:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbjBXBhI (ORCPT ); Thu, 23 Feb 2023 20:37:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbjBXBhF (ORCPT ); Thu, 23 Feb 2023 20:37:05 -0500 Received: from m12.mail.163.com (m12.mail.163.com [123.126.96.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 082444D62A for ; Thu, 23 Feb 2023 17:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=HB+dW uvscvjtkF0TmqtxSRbCMAwdZR2HoFjGWALWztU=; b=CcCFQcxM92URzthU+DeCw D1UCuMMDWzcUvVn1Pesfs2VCRS/+T9xl+HZCIhStDto0PIvmVXqc9U+LQ6FdSP+V WNUxNIZ8C3qVx31BFLianfCAdPjC4BylR+jXWms2h5acazGRFN6mfOZCDSwjIIas W/SyBZcUVVa3CUP0gPZX5Y= Received: from zy-X550VX.. (unknown [183.255.48.209]) by smtp19 (Coremail) with SMTP id R9xpCgB3LvuyFPhj_w4HFQ--.50957S7; Fri, 24 Feb 2023 09:37:00 +0800 (CST) From: Zhang Yi <18994118902@163.com> To: git@vger.kernel.org Cc: v.garg.work@gmail.com, Zhang Yi <18994118902@163.com> Subject: [GSOC] [PATCH v2 3/3] t9700:delete whitespaces after redirect operators Date: Fri, 24 Feb 2023 09:34:13 +0800 Message-Id: <20230224013413.1969003-4-18994118902@163.com> X-Mailer: git-send-email 2.29.0-rc0 In-Reply-To: <20230224013413.1969003-1-18994118902@163.com> References: <20230224013413.1969003-1-18994118902@163.com> MIME-Version: 1.0 X-CM-TRANSID: R9xpCgB3LvuyFPhj_w4HFQ--.50957S7 X-Coremail-Antispam: 1Uf129KBjvJXoW7XFW5Cw15AFyxWFy5urW8Crg_yoW8JrW7pr 45Gr1ayrn0vr47GrnruF18CryxCa98Grn8XFsF9wn8GFn8CFsFkF13tr47WF18XrnIq3ZI ga1ktry8Gr4rW3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0ziMUDAUUUUU= X-Originating-IP: [183.255.48.209] X-CM-SenderInfo: zprymmqurrmmmqsbiqqrwthudrp/1tbiVh0g-lqzwiWcNQAAsy Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org There are whitespaces after redirect operators,which is a deprecated style. Delete whitespaces after redirect operators. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index 671875a3fc..ccc8212d73 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -14,20 +14,20 @@ skip_all_if_no_Test_More # set up test repository test_expect_success 'set up test repository' ' - echo "test file 1" > file1 && - echo "test file 2" > file2 && + echo "test file 1" >file1 && + echo "test file 2" >file2 && mkdir directory1 && - echo "in directory1" >> directory1/file && + echo "in directory1" >>directory1/file && mkdir directory2 && - echo "in directory2" >> directory2/file && + echo "in directory2" >>directory2/file && git add . && git commit -m "first commit" && - echo "new file in subdir 2" > directory2/file2 && + echo "new file in subdir 2" >directory2/file2 && git add . && git commit -m "commit in directory2" && - echo "changed file 1" > file1 && + echo "changed file 1" >file1 && git commit -a -m "second commit" && git config --add color.test.slot1 green &&