git reset --hard second &&
        git apply --reverse --binary --index patch &&
        git diff >diff &&
-       git diff /dev/null diff
+       test_cmp /dev/null diff
 
 '
 
 test_expect_success 'setup separate repository lacking postimage' '
 
-       git tar-tree initial initial | tar xf - &&
+       git tar-tree initial initial | $TAR xf - &&
        (
                cd initial && git init && git add .
        ) &&
 
-       git tar-tree second second | tar xf - &&
+       git tar-tree second second | $TAR xf - &&
        (
                cd second && git init && git add .
        )