aboutsummaryrefslogtreecommitdiffstats
path: root/t/t3415-rebase-autosquash.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t3415-rebase-autosquash.sh')
-rwxr-xr-xt/t3415-rebase-autosquash.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/t/t3415-rebase-autosquash.sh b/t/t3415-rebase-autosquash.sh
index fcc40d6fe1..26b42a526a 100755
--- a/t/t3415-rebase-autosquash.sh
+++ b/t/t3415-rebase-autosquash.sh
@@ -257,8 +257,8 @@ test_expect_success 'auto squash of fixup commit that matches branch name which
GIT_SEQUENCE_EDITOR="cat >tmp" git rebase --autosquash -i HEAD^^ &&
sed -ne "/^[^#]/{s/[0-9a-f]\{7,\}/HASH/g;p;}" tmp >actual &&
cat <<-EOF >expect &&
- pick HASH second commit
- pick HASH fixup! self-cycle # empty
+ pick HASH # second commit
+ pick HASH # fixup! self-cycle # empty
EOF
test_cmp expect actual
'
@@ -311,10 +311,10 @@ test_auto_fixup_fixup () {
parent2=$(git rev-parse --short HEAD^^) &&
parent3=$(git rev-parse --short HEAD^^^) &&
cat >expected <<-EOF &&
- pick $parent3 first commit
- $1 $parent1 $1! first
- $1 $head $1! $2! first
- pick $parent2 second commit
+ pick $parent3 # first commit
+ $1 $parent1 # $1! first
+ $1 $head # $1! $2! first
+ pick $parent2 # second commit
EOF
test_cmp expected actual
) &&
@@ -389,7 +389,7 @@ test_expect_success 'autosquash with empty custom instructionFormat' '
set_cat_todo_editor &&
test_must_fail git -c rebase.instructionFormat= \
rebase --autosquash --force-rebase -i HEAD^ >actual &&
- git log -1 --format="pick %h %s" >expect &&
+ git log -1 --format="pick %h # %s" >expect &&
test_cmp expect actual
)
'