about summary refs log tree commit diff
path: root/third_party/git/t/t5517-push-mirror.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t5517-push-mirror.sh')
-rwxr-xr-xthird_party/git/t/t5517-push-mirror.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/git/t/t5517-push-mirror.sh b/third_party/git/t/t5517-push-mirror.sh
index c05a661400..e4edd56404 100755
--- a/third_party/git/t/t5517-push-mirror.sh
+++ b/third_party/git/t/t5517-push-mirror.sh
@@ -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