diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-11-18 17:49:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-18 21:27:38 +0300 |
commit | a900999d7cd74f878686933a6341e3852726165d (patch) | |
tree | 01bf3f63c2842905ee865cc959eeb3b7fa8b2fed /t/t2106-update-index-assume-unchanged.sh | |
parent | 898f80736c75878acc02dc55672317fcc0e0a5a6 (diff) |
t2106: adjust style to the current conventions
We settled on the style where the test cases' code starts by the opening
single quote being on the `test_expect_*` line, and the closing quote
being in its own line after the code.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2106-update-index-assume-unchanged.sh')
-rwxr-xr-x | t/t2106-update-index-assume-unchanged.sh | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/t/t2106-update-index-assume-unchanged.sh b/t/t2106-update-index-assume-unchanged.sh index 99d858c6b7..ff0947f388 100755 --- a/t/t2106-update-index-assume-unchanged.sh +++ b/t/t2106-update-index-assume-unchanged.sh @@ -5,20 +5,22 @@ test_description='git update-index --assume-unchanged test. . ./test-lib.sh -test_expect_success 'setup' \ - ': >file && - git add file && - git commit -m initial && - git branch other && - echo upstream >file && - git add file && - git commit -m upstream' +test_expect_success 'setup' ' + : >file && + git add file && + git commit -m initial && + git branch other && + echo upstream >file && + git add file && + git commit -m upstream +' -test_expect_success 'do not switch branches with dirty file' \ - 'git reset --hard && - git checkout other && - echo dirt >file && - git update-index --assume-unchanged file && - test_must_fail git checkout master' +test_expect_success 'do not switch branches with dirty file' ' + git reset --hard && + git checkout other && + echo dirt >file && + git update-index --assume-unchanged file && + test_must_fail git checkout master +' test_done |