diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-01-28 13:02:24 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-28 13:02:24 -0800 |
| commit | b09b10ad2660f6ad8c513f09a7e50ae7d7fffb7b (patch) | |
| tree | 53d602d3dd1a20e4b9f01de44c0e5002f9c052cb | |
| parent | a17fd7dd3ada289df8e44e64ff52a5d886dfee95 (diff) | |
| parent | 2d0ff147e5f6a46554605d137993ba385698eb4e (diff) | |
| download | git-b09b10ad2660f6ad8c513f09a7e50ae7d7fffb7b.tar.gz | |
Merge branch 'jp/t8002-printf-fix'
Test fix.
* jp/t8002-printf-fix:
t8002: fix ambiguous printf conversion specifications
| -rwxr-xr-x | t/t8002-blame.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t8002-blame.sh b/t/t8002-blame.sh index 1ad039e123..e98993276a 100755 --- a/t/t8002-blame.sh +++ b/t/t8002-blame.sh @@ -138,7 +138,7 @@ test_expect_success 'blame --abbrev -b truncates the blank boundary' ' # Note that `--abbrev=` always gets incremented by 1, which is why we # expect 11 leading spaces and not 10. cat >expect <<-EOF && - $(printf "%0.s " $(test_seq 11)) (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev + $(printf "%11s" "") (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev EOF git blame -b --abbrev=10 ^HEAD -- abbrev.t >actual && test_cmp expect actual @@ -146,7 +146,7 @@ test_expect_success 'blame --abbrev -b truncates the blank boundary' ' test_expect_success 'blame with excessive --abbrev and -b culls to hash length' ' cat >expect <<-EOF && - $(printf "%0.s " $(test_seq $hexsz)) (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev + $(printf "%${hexsz}s" "") (<author@example.com> 2005-04-07 15:45:13 -0700 1) abbrev EOF git blame -b --abbrev=9000 ^HEAD -- abbrev.t >actual && test_cmp expect actual |
