Missing && in t/t7001.sh.
[gitweb.git] / t / t5510-fetch.sh
index de26c203270522983f9ffae4e0bde64a61898567..52094e78dcd63cd7dc1ce166450c403fc32efbac 100755 (executable)
@@ -303,4 +303,16 @@ test_expect_success 'pushing nonexistent branch by mistake should not segv' '
 
 '
 
+test_expect_success 'refuse to fetch into the current branch' '
+
+       test_must_fail git fetch . side:master
+
+'
+
+test_expect_success 'fetch into the current branch with --update-head-ok' '
+
+       git fetch --update-head-ok . side:master
+
+'
+
 test_done