]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t3701-add-interactive.sh
Merge commit 'b319ef7' into jc/maint-fix-test-perm
[git.git] / t / t3701-add-interactive.sh
index 9999fcd4b6e4000f199131e9b62e9aae3d278db1..fd2a55a5c23247c010a02513af73a93641cfb067 100755 (executable)
@@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but not hunk' '
 
 # end of tests disabled when filemode is not usable
 
+test_expect_success 'setup again' '
+       git reset --hard &&
+       test_chmod +x file &&
+       echo content >>file
+'
+
 # Write the patch file with a new line at the top and bottom
 cat >patch <<EOF
 index 180b47c..b6f2c08 100644
@@ -189,7 +195,7 @@ index b6f2c08..61b9053 100755
 +lastline
 EOF
 # Test splitting the first patch, then adding both
-test_expect_failure 'add first line works' '
+test_expect_success 'add first line works' '
        git commit -am "clear local changes" &&
        git apply patch &&
        (echo s; echo y; echo y) | git add -p file &&