[PATCHv4 2/5] t7406: simplify by using diff --name-only instead of diff --raw
- From
Elijah Newren <newren@gmail.com>
- Date
- Aug 8, 2018, 16:31 UTC
- Message-ID
- <20180808163107.12329-3-newren@gmail.com>
- In-Reply-To
- <20180808163107.12329-1-newren@gmail.com>
We can get rid of some quoted tabs and make a few tests slightly easier to read and edit by just asking for the names of the files modified, since that's all these tests were interested in anyway.
Signed-off-by: Elijah Newren <newren@gmail.com> --- t/t7406-submodule-update.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index ccdc2f9039..f821b01f15 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -579,9 +579,9 @@ test_expect_success 'submodule update - update=none in .git/config' ' git checkout master && compare_head ) && - git diff --raw | grep " submodule" && + git diff --name-only | grep ^submodule$ && git submodule update && - git diff --raw | grep " submodule" && + git diff --name-only | grep ^submodule$ && (cd submodule && compare_head ) && @@ -597,10 +597,10 @@ test_expect_success 'submodule update - update=none in .git/config but --checkou git checkout master && compare_head ) && - git diff --raw | grep " submodule" && + git diff --name-only | grep ^submodule$ && git submodule update --checkout && - git diff --raw >out && - ! grep " submodule" out && + git diff --name-only >out && + ! grep ^submodule$ out && (cd submodule && test_must_fail compare_head ) &&
-- 2.18.0.556.g1604670984