[PATCH 1/2] t4131: modernize style
- From
- Harshit Jain <harshitjain1371999@gmail.com>
- Date
- Mar 20, 2020, 13:08 UTC
- Message-ID
- <20200320130845.23257-2-harshitjain1371999@gmail.com>
- In-Reply-To
- <20200320130845.23257-1-harshitjain1371999@gmail.com>
The tests in t4131 leave a space character between the redirection operator and the file i.e. the redirection target which does not conform to the modern coding style.
Fix them.
Signed-off-by: Harshit Jain <harshitjain1371999@gmail.com> --- t/t4131-apply-fake-ancestor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/t4131-apply-fake-ancestor.sh b/t/t4131-apply-fake-ancestor.sh index b1361ce546..828d1a355b 100755 --- a/t/t4131-apply-fake-ancestor.sh +++ b/t/t4131-apply-fake-ancestor.sh @@ -17,8 +17,8 @@ test_expect_success 'setup' ' test_expect_success 'apply --build-fake-ancestor' ' git checkout 2 && - echo "A" > 1.t && - git diff > 1.patch && + echo "A" >1.t && + git diff >1.patch && git reset --hard && git checkout 1 && git apply --build-fake-ancestor 1.ancestor 1.patch @@ -26,8 +26,8 @@ test_expect_success 'apply --build-fake-ancestor' ' test_expect_success 'apply --build-fake-ancestor in a subdirectory' ' git checkout 3 && - echo "C" > sub/3.t && - git diff > 3.patch && + echo "C" >sub/3.t && + git diff >3.patch && git reset --hard && git checkout 4 && (
-- 2.26.0.rc2