From patchwork Wed Nov 27 19:53:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 11264849 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD39415AB for ; Wed, 27 Nov 2019 19:53:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D03A2084D for ; Wed, 27 Nov 2019 19:53:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uTY0pBMt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727377AbfK0Txw (ORCPT ); Wed, 27 Nov 2019 14:53:52 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46453 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbfK0Txu (ORCPT ); Wed, 27 Nov 2019 14:53:50 -0500 Received: by mail-pl1-f196.google.com with SMTP id k20so5835051pll.13 for ; Wed, 27 Nov 2019 11:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TTGArOLNSDO/W+ec6Zao4SyPEJrHIiSW7J0frH7zG98=; b=uTY0pBMt5HUOzG5/HtC4PJmwh4rFQLIQZnc7Sd0CbT9R2B/ub05WeMtZulutMNOqIU qk5lD+la6c/NOxwc0QpHuO1W5NWBl0tNKZw/aVpRA5h+XquikYEgx3ctVf0JUFbXgeI1 sdMKw9oCfs4JhI3dQH+j6BV3/jeU+1phAZQDWZ++SsH3X+VhsA3mcZ643mQjgg7GsoyE sw/dptNRrf+6GtJ+pk7Hiso1F6r9Weq6WnznTXFxcqVMtOcsfMaSTnz8U9RTAqdqu3ec PgSsjzDwHkgUm8dLZeqSUSyUPL58dIEjy8EXzbNZK2mWYUzmmrwgS9f2oIkystHOFhXU nC5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TTGArOLNSDO/W+ec6Zao4SyPEJrHIiSW7J0frH7zG98=; b=SUwfOu7Z087ZqeWrt7FVDNOQCOwpPBsdqybeI8sg2YjHsBjYaMybZYu9PWkXsQiUUD ubDpJy92uGroCql0EZgCIHEF1/TonYr5iluf/TO+CGWJwTGtn7KAYZrboZBWvYyhjAtu vYGD7CYwtlezBbKGqtwuok5bEJURhQqzy61u/2FwKwl3ktfVV6i1yL5vhftOUPCgrvWi Amf+7oFVpDBUYLTQguPeYIE2jeKwVjlChX3QYpcLBCvhWR6QOTNCZynGxu+1EjTLVXiA 2w/JV97I9QbboWblfwA+BJFllkK8ZWacGZ/4+1WOFz78HEGrnkb5um1bnHgAh4Rs0T3U bS8g== X-Gm-Message-State: APjAAAWCq08LEvagJAdOvC7rGHa5xtW2yl6Xkn6qaP6w+xQtalZ8HNtQ jYHlJaW2pQDEsi8fn/XXUBt7NMtT X-Google-Smtp-Source: APXvYqxF+at9mEgdx2fs8Cp59IYFM7bl2DhquWIO7ZVvvCWmQsGvaiT9Jx/p/RR8+Er/WAlH4BL10A== X-Received: by 2002:a17:90a:cb16:: with SMTP id z22mr8300423pjt.71.1574884429567; Wed, 27 Nov 2019 11:53:49 -0800 (PST) Received: from generichostname ([204.14.239.138]) by smtp.gmail.com with ESMTPSA id a21sm7681343pjv.20.2019.11.27.11.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 11:53:49 -0800 (PST) Date: Wed, 27 Nov 2019 11:53:47 -0800 From: Denton Liu To: Git Mailing List Cc: Eric Sunshine , Junio C Hamano , Jeff King Subject: [PATCH v5 19/26] t7700: remove spaces after redirect operators Message-ID: <58ae066d12144a226ceb7617a3597c5799a2cd58.1574884302.git.liu.denton@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org For shell scripts, the usual convention is for there to be no space after redirection operators, (e.g. `>file`, not `> file`). Remove these spaces wherever they appear. Signed-off-by: Denton Liu --- t/t7700-repack.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/t/t7700-repack.sh b/t/t7700-repack.sh index e1a689d6a9..8936928387 100755 --- a/t/t7700-repack.sh +++ b/t/t7700-repack.sh @@ -11,8 +11,8 @@ commit_and_pack() { } test_expect_success 'objects in packs marked .keep are not repacked' ' - echo content1 > file1 && - echo content2 > file2 && + echo content1 >file1 && + echo content2 >file2 && git add . && test_tick && git commit -m initial_commit && @@ -75,8 +75,8 @@ test_expect_success 'writing bitmaps via config can duplicate .keep objects' ' test_expect_success 'loose objects in alternate ODB are not repacked' ' mkdir alt_objects && - echo $(pwd)/alt_objects > .git/objects/info/alternates && - echo content3 > file3 && + echo $(pwd)/alt_objects >.git/objects/info/alternates && + echo content3 >file3 && objsha1=$(GIT_OBJECT_DIRECTORY=alt_objects git hash-object -w file3) && git add file3 && test_tick && @@ -111,7 +111,7 @@ test_expect_success 'packed obs in alt ODB are repacked even when local repo is test_expect_success 'packed obs in alt ODB are repacked when local repo has packs' ' rm -f .git/objects/pack/* && - echo new_content >> file1 && + echo new_content >>file1 && git add file1 && test_tick && git commit -m more_content && @@ -169,12 +169,12 @@ test_expect_success 'packed unreachable obs in alternate ODB are not loosened' ' mv pack-* .git/objects/pack/ && test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx | egrep "^$csha1 " | sort | uniq | wc -l) && - echo > .git/objects/info/alternates && + echo >.git/objects/info/alternates && test_must_fail git show $csha1 ' test_expect_success 'local packed unreachable obs that exist in alternate ODB are not loosened' ' - echo $(pwd)/alt_objects > .git/objects/info/alternates && + echo $(pwd)/alt_objects >.git/objects/info/alternates && echo "$csha1" | git pack-objects --non-empty --all --reflog pack && rm -f .git/objects/pack/* && mv pack-* .git/objects/pack/ && @@ -186,7 +186,7 @@ test_expect_success 'local packed unreachable obs that exist in alternate ODB ar mv pack-* .git/objects/pack/ && test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx | egrep "^$csha1 " | sort | uniq | wc -l) && - echo > .git/objects/info/alternates && + echo >.git/objects/info/alternates && test_must_fail git show $csha1 ' @@ -196,7 +196,7 @@ test_expect_success 'objects made unreachable by grafts only are kept' ' H0=$(git rev-parse HEAD) && H1=$(git rev-parse HEAD^) && H2=$(git rev-parse HEAD^^) && - echo "$H0 $H2" > .git/info/grafts && + echo "$H0 $H2" >.git/info/grafts && git reflog expire --expire=$test_tick --expire-unreachable=$test_tick --all && git repack -a -d && git cat-file -t $H1