aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/t1901-repo-structure.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t1901-repo-structure.sh b/t/t1901-repo-structure.sh
index a6f2591d9a..a67b38ab17 100755
--- a/t/t1901-repo-structure.sh
+++ b/t/t1901-repo-structure.sh
@@ -145,18 +145,18 @@ test_expect_success SHA1 'lines and nul format' '
test_cmp expect out &&
test_line_count = 0 err &&
- # Replace key and value delimiters for nul format.
- tr "\n=" "\0\n" <expect >expect_nul &&
git repo structure --format=nul >out 2>err &&
+ tr "\012\000" "=\012" <out >actual &&
- test_cmp expect_nul out &&
+ test_cmp expect actual &&
test_line_count = 0 err &&
# "-z", as a synonym to "--format=nul", participates in the
# usual "last one wins" rule.
git repo structure --format=table -z >out 2>err &&
+ tr "\012\000" "=\012" <out >actual &&
- test_cmp expect_nul out &&
+ test_cmp expect actual &&
test_line_count = 0 err
)
'