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

Re: [PATCH 2/4] tests: check --[short]stat output after chmod

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 2, 2012, 07:36 UTC
Message-ID
<4FA0E40C.6030809@viscovery.net>
In-Reply-To
<1335892215-21331-3-git-send-email-zbyszek@in.waw.pl>
Am 5/1/2012 19:10, schrieb Zbigniew Jędrzejewski-Szmek:
Show 6 quoted lines
> +test_expect_success 'prepare binary file' '
> +	git commit -m rezrov &&
> +	dd if=/dev/zero of=binbin bs=1024 count=1 &&
> +	git add binbin &&
> +	git commit -m binbin
> +'
Please squash in this fixup; we do not have /dev/zero on Windows.
diff --git a/t/t4006-diff-mode.sh b/t/t4006-diff-mode.sh
index 693bfc4..7a3e1f9 100755
--- a/t/t4006-diff-mode.sh
+++ b/t/t4006-diff-mode.sh
@@ -27,7 +27,7 @@ test_expect_success 'chmod' '
 
 test_expect_success 'prepare binary file' '
 	git commit -m rezrov &&
-	dd if=/dev/zero of=binbin bs=1024 count=1 &&
+	printf "\00\01\02\03\04\05\06" >binbin &&
 	git add binbin &&
 	git commit -m binbin
 '
-- 
1.7.10.1.1568.gede6096
Previous: Zbigniew Jędrzejewski-SzmekNext: Zbigniew Jędrzejewski-Szmek
Message 6 of 11 in “report chmod'ed binary files the same as text files”
  1. 0/4 report chmod'ed binary files the same as text filesZbigniew Jędrzejewski-Szmek, May 1, 2012
  2. 1/4 test: modernize style of t4006Zbigniew Jędrzejewski-Szmek, May 1, 2012
  3. Junio C HamanoMay 1, 2012
  4. Zbigniew Jędrzejewski-SzmekMay 1, 2012
  5. 2/4 tests: check --[short]stat output after chmodZbigniew Jędrzejewski-Szmek, May 1, 2012
  6. Johannes SixtMay 2, 2012
  7. 3/4 diff --stat: report chmoded binary files like text filesZbigniew Jędrzejewski-Szmek, May 1, 2012
  8. Junio C HamanoMay 1, 2012
  9. Zbigniew Jędrzejewski-SzmekMay 1, 2012
  10. 4/4 diff --stat: do not run diff on indentical filesZbigniew Jędrzejewski-Szmek, May 1, 2012
  11. Martin MaresMay 3, 2012

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.