aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-01 13:21:35 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-01 13:21:35 -0700
commitf949703f4b0a89704f45ccd8552334d1627949b9 (patch)
tree798ce2eb5daa9a28097fc60b1f6c6dcab90307d0 /t
parentMerge branch 'ps/t7800-variable-interpolation-fix' (diff)
parentrebase: use child_process_clear() to clean (diff)
downloadgit-f949703f4b0a89704f45ccd8552334d1627949b9.tar.gz
git-f949703f4b0a89704f45ccd8552334d1627949b9.zip
Merge branch 'jk/rebase-apply-leakfix'
Leakfix. * jk/rebase-apply-leakfix: rebase: use child_process_clear() to clean
Diffstat (limited to 't')
-rwxr-xr-xt/t3438-rebase-broken-files.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t3438-rebase-broken-files.sh b/t/t3438-rebase-broken-files.sh
index c614c4f2e4..821f08e5af 100755
--- a/t/t3438-rebase-broken-files.sh
+++ b/t/t3438-rebase-broken-files.sh
@@ -58,4 +58,13 @@ test_expect_success 'unknown key in author-script' '
check_resolve_fails
'
+test_expect_success POSIXPERM,SANITY 'unwritable rebased-patches does not leak' '
+ >.git/rebased-patches &&
+ chmod a-w .git/rebased-patches &&
+
+ git checkout -b side HEAD^ &&
+ test_commit unrelated &&
+ test_must_fail git rebase --apply --onto tmp HEAD^
+'
+
test_done