diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-01-20 13:35:47 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-20 13:35:47 -0800 |
| commit | 2aa9b75b4319f94c3bf23c52ca704e010fc86e48 (patch) | |
| tree | 10901a107ad8c4614a9d04b40200981cfb583685 /t | |
| parent | 68cb7f9e92a5d8e9824f5b52ac3d0a9d8f653dbe (diff) | |
| parent | d79fff4a11a527f57516c62fe00777852bab719a (diff) | |
| download | git-2aa9b75b4319f94c3bf23c52ca704e010fc86e48.tar.xz | |
Merge branch 'jk/remote-tracking-ref-leakfix' into hn/status-compare-with-push
* jk/remote-tracking-ref-leakfix:
remote: always allocate branch.push_tracking_ref
remote: fix leak in branch_get_push_1() with invalid "simple" config
remote: drop const return of tracking_for_push_dest()
remote: return non-const pointer from error_buf()
Diffstat (limited to 't')
| -rw-r--r-- | t/for-each-ref-tests.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/for-each-ref-tests.sh b/t/for-each-ref-tests.sh index 4593be5fd5..bd2d45c971 100644 --- a/t/for-each-ref-tests.sh +++ b/t/for-each-ref-tests.sh @@ -1744,6 +1744,15 @@ test_expect_success ':remotename and :remoteref' ' ) ' +test_expect_success '%(push) with an invalid push-simple config' ' + echo "refs/heads/main " >expect && + git -c push.default=simple \ + -c remote.pushdefault=myfork \ + for-each-ref \ + --format="%(refname) %(push)" refs/heads/main >actual && + test_cmp expect actual +' + test_expect_success "${git_for_each_ref} --ignore-case ignores case" ' ${git_for_each_ref} --format="%(refname)" refs/heads/MAIN >actual && test_must_be_empty actual && |
