@matheusbsbs / matheus-bagliano / commits / 7a1c8c2346
Fork 0

t7700: remove spaces after redirect operators

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 <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Nov 27, 2019 at 11:53 UTC 7a1c8c2346d43b4e5e5a59997288ae805a2a5019
1 file changed +9 -9
t/t7700-repack.sh
+9 -9
@@ -11,8 +11,8 @@ commit_and_pack() {
11 }
12
13 test_expect_success 'objects in packs marked .keep are not repacked' '
14 - echo content1 > file1 &&
15 - echo content2 > file2 &&
14 + echo content1 >file1 &&
15 + echo content2 >file2 &&
16 git add . &&
17 test_tick &&
18 git commit -m initial_commit &&
@@ -75,8 +75,8 @@ test_expect_success 'writing bitmaps via config can duplicate .keep objects' '
75
76 test_expect_success 'loose objects in alternate ODB are not repacked' '
77 mkdir alt_objects &&
78 - echo $(pwd)/alt_objects > .git/objects/info/alternates &&
79 - echo content3 > file3 &&
78 + echo $(pwd)/alt_objects >.git/objects/info/alternates &&
79 + echo content3 >file3 &&
80 objsha1=$(GIT_OBJECT_DIRECTORY=alt_objects git hash-object -w file3) &&
81 git add file3 &&
82 test_tick &&
@@ -111,7 +111,7 @@ test_expect_success 'packed obs in alt ODB are repacked even when local repo is
111
112 test_expect_success 'packed obs in alt ODB are repacked when local repo has packs' '
113 rm -f .git/objects/pack/* &&
114 - echo new_content >> file1 &&
114 + echo new_content >>file1 &&
115 git add file1 &&
116 test_tick &&
117 git commit -m more_content &&
@@ -169,12 +169,12 @@ test_expect_success 'packed unreachable obs in alternate ODB are not loosened' '
169 mv pack-* .git/objects/pack/ &&
170 test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
171 egrep "^$csha1 " | sort | uniq | wc -l) &&
172 - echo > .git/objects/info/alternates &&
172 + echo >.git/objects/info/alternates &&
173 test_must_fail git show $csha1
174 '
175
176 test_expect_success 'local packed unreachable obs that exist in alternate ODB are not loosened' '
177 - echo $(pwd)/alt_objects > .git/objects/info/alternates &&
177 + echo $(pwd)/alt_objects >.git/objects/info/alternates &&
178 echo "$csha1" | git pack-objects --non-empty --all --reflog pack &&
179 rm -f .git/objects/pack/* &&
180 mv pack-* .git/objects/pack/ &&
@@ -186,7 +186,7 @@ test_expect_success 'local packed unreachable obs that exist in alternate ODB ar
186 mv pack-* .git/objects/pack/ &&
187 test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
188 egrep "^$csha1 " | sort | uniq | wc -l) &&
189 - echo > .git/objects/info/alternates &&
189 + echo >.git/objects/info/alternates &&
190 test_must_fail git show $csha1
191 '
192
@@ -196,7 +196,7 @@ test_expect_success 'objects made unreachable by grafts only are kept' '
196 H0=$(git rev-parse HEAD) &&
197 H1=$(git rev-parse HEAD^) &&
198 H2=$(git rev-parse HEAD^^) &&
199 - echo "$H0 $H2" > .git/info/grafts &&
199 + echo "$H0 $H2" >.git/info/grafts &&
200 git reflog expire --expire=$test_tick --expire-unreachable=$test_tick --all &&
201 git repack -a -d &&
202 git cat-file -t $H1