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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxxxxxx> (HFS+ on Mac OS 10.5.6)

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux