git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] the use of 'tr' in the test suite isn't really portable

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2007, 20:25 UTC
Message-ID
<7vlk7t6pc6.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071217191508.79cc05e2@pc09.procura.nl>
The contents looked correct but the patch was garbled.
--
Applying the use of 'tr' in the test suite isn't really portable
.dotest/patch:11: indent with spaces.
               git diff-index -r $commit | cut -f 2- | tr '\n' '\000' | \
.dotest/patch:153: indent with spaces.
            dd if=/dev/zero bs=4k count=1 | tr "\\000" $i >$i &&
.dotest/patch:165: indent with spaces.
                       tr '\000' 'g'
.dotest/patch:174: indent with spaces.
                       tr '\000' 'g'
error: patch failed: git-filter-branch.sh:290
error: git-filter-branch.sh: patch does not apply
error: patch failed: t/t0020-crlf.sh:5
error: t/t0020-crlf.sh: patch does not apply
error: patch failed: t/t3300-funny-names.sh:54
error: t/t3300-funny-names.sh: patch does not apply
error: patch failed: t/t4020-diff-external.sh:99
error: t/t4020-diff-external.sh: patch does not apply
error: patch failed: t/t4116-apply-reverse.sh:12
error: t/t4116-apply-reverse.sh: patch does not apply
error: patch failed: t/t4200-rerere.sh:129
error: t/t4200-rerere.sh: patch does not apply
error: patch failed: t/t5300-pack-object.sh:15
error: t/t5300-pack-object.sh: patch does not apply
error: patch failed: test-sha1.sh:10
error: test-sha1.sh: patch does not apply
.dotest/patch:11: indent with spaces.
               git diff-index -r $commit | cut -f 2- | tr '\n' '\000' | \
.dotest/patch:153: indent with spaces.
            dd if=/dev/zero bs=4k count=1 | tr "\\000" $i >$i &&
.dotest/patch:165: indent with spaces.
                       tr '\000' 'g'
.dotest/patch:174: indent with spaces.
                       tr '\000' 'g'
Previous: H.Merijn BrandNext: H.Merijn Brand
Message 2 of 4 in “the use of 'tr' in the test suite isn't really portable”
  1. the use of 'tr' in the test suite isn't really portableH.Merijn Brand, Dec 17, 2007
  2. Junio C HamanoDec 17, 2007
  3. H.Merijn BrandDec 17, 2007
  4. Junio C HamanoDec 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.