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

Re: [PATCH] t3411: Fix test 1 for case-insensitive file systems

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Feb 3, 2009, 15:07 UTC
Message-ID
<1E104E1B-BFCC-4CFC-9D53-CE89299C9600@silverinsanity.com>
In-Reply-To
<673CE949-5DF9-4970-A739-AA09FCD26D24@silverinsanity.com>

This change appears to have been forgotten, but does fix the problems I was having. Junio, can this make it into the official repo instead of floating around in my local? I'd send in a patch, but it was your code and I don't want to take credit for it.

~~ Brian
On Jan 29, 2009, at 2:10 PM, Brian Gernhardt wrote:
Show 22 quoted lines
>
> On Jan 29, 2009, at 12:19 PM, Junio C Hamano wrote:
>
>> If we really wanted to care about case-folding file systems,  
>> shouldn't we
>> make test_commit shell function a bit more than the downcasing?   
>> How about
>> this patch instead?
>
> That's a good point.  Always good to prevent future issues.
>
>> test_commit () {
>> -	file=${2:-$(echo "$1" | tr 'A-Z' 'a-z')}
>> +	file=${2:-$(echo "$1" | tr 'A-Z' 'a-z').t}
>> 	echo "${3-$1}" > "$file" &&
>> 	git add "$file" &&
>> 	test_tick &&
>
> Added this and ran through the tests.  Works for me. :-D
>
> Tested-by: Brian Gernhardt <benji@silverinsanity.com> (HFS+ on Mac  
> OS 10.5.6)
Previous: Brian GernhardtNext: Johannes Schindelin
Message 6 of 17 in “t3411: Fix test 1 for case-insensitive file systems”
  1. t3411: Fix test 1 for case-insensitive file systemsBrian Gernhardt, Jan 29, 2009
  2. Johannes SchindelinJan 29, 2009
  3. Junio C HamanoJan 29, 2009
  4. Johannes SchindelinJan 29, 2009
  5. Brian GernhardtJan 29, 2009
  6. Brian GernhardtFeb 3, 2009
  7. Johannes SchindelinFeb 3, 2009
  8. Brian GernhardtFeb 3, 2009
  9. Johannes SchindelinFeb 3, 2009
  10. Brian GernhardtFeb 3, 2009
  11. Johannes SchindelinFeb 3, 2009
  12. Brian GernhardtFeb 3, 2009
  13. Junio C HamanoFeb 3, 2009
  14. Brian GernhardtFeb 3, 2009
  15. Johannes SchindelinFeb 3, 2009
  16. Johannes SchindelinFeb 3, 2009
  17. Junio C HamanoFeb 4, 2009

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.