Git fork

Merge branch 'jp/t8002-printf-fix'

Test fix.

* jp/t8002-printf-fix:
t8002: fix ambiguous printf conversion specifications

+2 -2
+2 -2
t/t8002-blame.sh
··· 138 138 # Note that `--abbrev=` always gets incremented by 1, which is why we 139 139 # expect 11 leading spaces and not 10. 140 140 cat >expect <<-EOF && 141 - $(printf "%0.s " $(test_seq 11)) (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev 141 + $(printf "%11s" "") (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev 142 142 EOF 143 143 git blame -b --abbrev=10 ^HEAD -- abbrev.t >actual && 144 144 test_cmp expect actual ··· 146 146 147 147 test_expect_success 'blame with excessive --abbrev and -b culls to hash length' ' 148 148 cat >expect <<-EOF && 149 - $(printf "%0.s " $(test_seq $hexsz)) (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev 149 + $(printf "%${hexsz}s" "") (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev 150 150 EOF 151 151 git blame -b --abbrev=9000 ^HEAD -- abbrev.t >actual && 152 152 test_cmp expect actual