t/t7700-repack.sh: use the $( ... ) construct for command substitution

The Git CodingGuidelines prefer the $(...) construct for command substitution instead of using the backquotes `...`. The backquoted form is the traditional method for command substitution, and is supported by POSIX. However, all but the simplest uses become complicated quickly. In particular, embedded command substitutions and/or the use of double quotes require careful escaping with the backslash character. The patch was generated by: for _f in $(find . -name "*.sh") do perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg' "${_f}" done and then carefully proof-read. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elia Pinto committed Jan 8, 2016 at 12:06 UTC aa14a3c1056072ddc877dc1aaee68231be00caa9
1 file changed +2 -2
t/t7700-repack.sh
+2 -2
@@ -69,7 +69,7 @@ test_expect_success 'writing bitmaps via config can duplicate .keep objects' '
69
70 test_expect_success 'loose objects in alternate ODB are not repacked' '
71 mkdir alt_objects &&
72 - echo `pwd`/alt_objects > .git/objects/info/alternates &&
72 + echo $(pwd)/alt_objects > .git/objects/info/alternates &&
73 echo content3 > file3 &&
74 objsha1=$(GIT_OBJECT_DIRECTORY=alt_objects git hash-object -w file3) &&
75 git add file3 &&
@@ -168,7 +168,7 @@ test_expect_success 'packed unreachable obs in alternate ODB are not loosened' '
168 '
169
170 test_expect_success 'local packed unreachable obs that exist in alternate ODB are not loosened' '
171 - echo `pwd`/alt_objects > .git/objects/info/alternates &&
171 + echo $(pwd)/alt_objects > .git/objects/info/alternates &&
172 echo "$csha1" | git pack-objects --non-empty --all --reflog pack &&
173 rm -f .git/objects/pack/* &&
174 mv pack-* .git/objects/pack/ &&