Code

Fix working directory errno handling when unlinking a directory
[git.git] / t / t4116-apply-reverse.sh
index a79c77af391bce1a209a793ac8ce75b02023fe2d..2685b2263017df96159542853b373ea261880ba4 100755 (executable)
@@ -42,7 +42,7 @@ test_expect_success 'apply in reverse' '
        git reset --hard second &&
        git apply --reverse --binary --index patch &&
        git diff >diff &&
-       diff -u /dev/null diff
+       git diff /dev/null diff
 
 '
 
@@ -50,12 +50,12 @@ test_expect_success 'setup separate repository lacking postimage' '
 
        git tar-tree initial initial | tar xf - &&
        (
-               cd initial && git_init_db && git add .
+               cd initial && git init && git add .
        ) &&
 
        git tar-tree second second | tar xf - &&
        (
-               cd second && git_init_db && git add .
+               cd second && git init && git add .
        )
 
 '