t/t5304-prune.sh: use the $( ... ) construct for command substitution
[gitweb.git] / t / t5304-prune.sh
index 029751544f0072d0118c47ad039c1ca542ee6625..133b5842b1aee8e8e00eb0ca7e1b2d32ff4a4c9a 100755 (executable)
@@ -245,7 +245,7 @@ EOF
        test_cmp expected actual
 '
 
-test_expect_failure 'clean pack garbage with gc' '
+test_expect_success 'clean pack garbage with gc' '
        test_when_finished "rm -f .git/objects/pack/fake*" &&
        test_when_finished "rm -f .git/objects/pack/foo*" &&
        : >.git/objects/pack/foo.keep &&
@@ -266,7 +266,7 @@ EOF
 '
 
 test_expect_success 'prune .git/shallow' '
-       SHA1=`echo hi|git commit-tree HEAD^{tree}` &&
+       SHA1=$(echo hi|git commit-tree HEAD^{tree}) &&
        echo $SHA1 >.git/shallow &&
        git prune --dry-run >out &&
        grep $SHA1 .git/shallow &&