Code

Merge branch 'maint'
[git.git] / t / t0055-beyond-symlinks.sh
index eb11dd7821cfab0162751d2684aa7098f851e322..b29c37a5a4de42239474c4fdf87c86c6f27b6ade 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test_description='update-index refuses to add beyond symlinks'
+test_description='update-index and add refuse to add beyond symlinks'
 
 . ./test-lib.sh
 
@@ -17,4 +17,9 @@ test_expect_success 'update-index --add beyond symlinks' '
        ! ( git ls-files | grep c/d )
 '
 
+test_expect_success 'add beyond symlinks' '
+       test_must_fail git add c/d &&
+       ! ( git ls-files | grep c/d )
+'
+
 test_done