diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:02 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-10 14:35:02 -0800 |
commit | 6d1e149ac04717efff7e0748509036a87cbb95e1 (patch) | |
tree | f923dcf112bedce2b26e58b9af673fc53e33c2d7 /t | |
parent | Merge branch 'vd/sparse-sparsity-fix-on-read' (diff) | |
parent | remote: die if branch is not found in repository (diff) | |
download | tgif-6d1e149ac04717efff7e0748509036a87cbb95e1.tar.xz |
Merge branch 'gc/remote-with-fewer-static-global-variables'
Code clean-up to eventually allow information on remotes defined
for an arbitrary repository to be read.
* gc/remote-with-fewer-static-global-variables:
remote: die if branch is not found in repository
remote: remove the_repository->remote_state from static methods
remote: use remote_state parameter internally
remote: move static variables into per-repository struct
t5516: add test case for pushing remote refspecs
Diffstat (limited to 't')
-rwxr-xr-x | t/t5516-fetch-push.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 8212ca56dc..7831a38dde 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -541,6 +541,15 @@ do done +test_expect_success "push to remote with no explicit refspec and config remote.*.push = src:dest" ' + mk_test testrepo heads/main && + git checkout $the_first_commit && + test_config remote.there.url testrepo && + test_config remote.there.push refs/heads/main:refs/heads/main && + git push there && + check_push_result testrepo $the_commit heads/main +' + test_expect_success 'push with remote.pushdefault' ' mk_test up_repo heads/main && mk_test down_repo heads/main && |