aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-10 10:00:09 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-10 10:00:09 -0700
commitf43863e68649ec8c19ab3b9a7885dbe825cba93a (patch)
tree4b80f32a3fa7a8e0454fc726e89e94a1b47cd44c
parent280b74ce184dedf931150de037ac87bc878e32af (diff)
parent40c45f809f84f5305ddb2e3b7a7f782e04166b15 (diff)
downloadgit-f43863e68649ec8c19ab3b9a7885dbe825cba93a.tar.gz
Merge branch 'jc/t2104-style-update'
Coding style fixes. * jc/t2104-style-update: t2104: style fixes
-rwxr-xr-xt/t2104-update-index-skip-worktree.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/t/t2104-update-index-skip-worktree.sh b/t/t2104-update-index-skip-worktree.sh
index 0bab134d71..7ec7f30b44 100755
--- a/t/t2104-update-index-skip-worktree.sh
+++ b/t/t2104-update-index-skip-worktree.sh
@@ -11,27 +11,27 @@ TEST_PASSES_SANITIZE_LEAK=true
sane_unset GIT_TEST_SPLIT_INDEX
test_set_index_version () {
- GIT_INDEX_VERSION="$1"
- export GIT_INDEX_VERSION
+ GIT_INDEX_VERSION="$1"
+ export GIT_INDEX_VERSION
}
test_set_index_version 3
-cat >expect.full <<EOF
-H 1
-H 2
-H sub/1
-H sub/2
-EOF
+test_expect_success 'setup' '
+ cat >expect.full <<-\EOF &&
+ H 1
+ H 2
+ H sub/1
+ H sub/2
+ EOF
-cat >expect.skip <<EOF
-S 1
-H 2
-S sub/1
-H sub/2
-EOF
+ cat >expect.skip <<-\EOF &&
+ S 1
+ H 2
+ S sub/1
+ H sub/2
+ EOF
-test_expect_success 'setup' '
mkdir sub &&
touch ./1 ./2 sub/1 sub/2 &&
git add 1 2 sub/1 sub/2 &&