]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5517-push-mirror.sh
Merge branch 'js/range-diff-noprefix'
[thirdparty/git.git] / t / t5517-push-mirror.sh
index c05a661400c10cb7574173b34116362d501481ce..e4edd56404fe636600e3f32eef754c7fb4b6b639 100755 (executable)
@@ -265,4 +265,14 @@ test_expect_success 'remote.foo.mirror=no has no effect' '
 
 '
 
+test_expect_success 'push to mirrored repository with refspec fails' '
+       mk_repo_pair &&
+       (
+               cd master &&
+               echo one >foo && git add foo && git commit -m one &&
+               git config --add remote.up.mirror true &&
+               test_must_fail git push up master
+       )
+'
+
 test_done