diff options
Diffstat (limited to 'third_party/git/t/t5517-push-mirror.sh')
-rwxr-xr-x | third_party/git/t/t5517-push-mirror.sh | 10 |
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 c05a661400c1..e4edd56404fe 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 |