aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-05 15:41:57 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-05 15:41:57 -0800
commit2b53e8b3ee7f143af785e2a39ce4e1614ff6c66e (patch)
treeac288f638e7ae7709949b15bb51f999c1cac1614 /t
parentb2826b52eb7caff9f4ed6e85ec45e338bf02ad09 (diff)
parentd79fff4a11a527f57516c62fe00777852bab719a (diff)
downloadgit-2b53e8b3ee7f143af785e2a39ce4e1614ff6c66e.tar.xz
Merge branch 'jk/remote-tracking-ref-leakfix'
Leakfix. * 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.sh9
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 &&