Skip to content

Commit b09b10a

Browse files
committed
Merge branch 'jp/t8002-printf-fix'
Test fix. * jp/t8002-printf-fix: t8002: fix ambiguous printf conversion specifications
2 parents a17fd7d + 2d0ff14 commit b09b10a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t8002-blame.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ test_expect_success 'blame --abbrev -b truncates the blank boundary' '
138138
# Note that `--abbrev=` always gets incremented by 1, which is why we
139139
# expect 11 leading spaces and not 10.
140140
cat >expect <<-EOF &&
141-
$(printf "%0.s " $(test_seq 11)) (<[email protected]> 2005-04-07 15:45:13 -0700 1) abbrev
141+
$(printf "%11s" "") (<[email protected]> 2005-04-07 15:45:13 -0700 1) abbrev
142142
EOF
143143
git blame -b --abbrev=10 ^HEAD -- abbrev.t >actual &&
144144
test_cmp expect actual
145145
'
146146

147147
test_expect_success 'blame with excessive --abbrev and -b culls to hash length' '
148148
cat >expect <<-EOF &&
149-
$(printf "%0.s " $(test_seq $hexsz)) (<[email protected]> 2005-04-07 15:45:13 -0700 1) abbrev
149+
$(printf "%${hexsz}s" "") (<[email protected]> 2005-04-07 15:45:13 -0700 1) abbrev
150150
EOF
151151
git blame -b --abbrev=9000 ^HEAD -- abbrev.t >actual &&
152152
test_cmp expect actual

0 commit comments

Comments
 (0)