summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:43 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:43 -0800
commit917d0d6234be4c6ce4ab0feea15911bfa5e65253 (patch)
treedad840743cf4009490fbf274687eabe27bb6ece8 /t
parentMerge branch 'ep/guard-kset-tar-headers' (diff)
parentrebase -r: let `label` generate safer labels (diff)
downloadtgif-917d0d6234be4c6ce4ab0feea15911bfa5e65253.tar.xz
Merge branch 'js/rebase-r-safer-label'
A label used in the todo list that are generated by "git rebase --rebase-merges" is used as a part of a refname; the logic to come up with the label has been tightened to avoid names that cannot be used as such. * js/rebase-r-safer-label: rebase -r: let `label` generate safer labels rebase-merges: move labels' whitespace mangling into `label_oid()`
Diffstat (limited to 't')
-rwxr-xr-xt/t3430-rebase-merges.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t3430-rebase-merges.sh b/t/t3430-rebase-merges.sh
index a30d27e9f3..bd701458ea 100755
--- a/t/t3430-rebase-merges.sh
+++ b/t/t3430-rebase-merges.sh
@@ -468,4 +468,10 @@ test_expect_success '--rebase-merges with strategies' '
test_cmp expect G.t
'
+test_expect_success '--rebase-merges with commit that can generate bad characters for filename' '
+ git checkout -b colon-in-label E &&
+ git merge -m "colon: this should work" G &&
+ git rebase --rebase-merges --force-rebase E
+'
+
test_done