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

Re: [PATCH] t0050: mark TC merge (case change) as success

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 14, 2013, 17:53 UTC
Message-ID
<50F4461E.3060408@web.de>
In-Reply-To
<7v7gnghdj2.fsf@alter.siamese.dyndns.org>
On 14.01.13 00:24, Junio C Hamano wrote:
Show 11 quoted lines
> Torsten Bögershausen <tboegi@web.de> writes:
> 
>> The test "merge (case change)" passes on a case ignoring file system
>>
>> Use test_expect_success to remove the "known breakage vanished"
>>
>> Signed-off-by: Torsten Bögershausen <tboegi@web.de>
>> ---
> 
> Interesting.  When did this change?  Do you happen to have a
> bisection?  
This seems to be the commit:
commit 6aad47dec7a72bb36c64afb6c43f4dbcaa49e7f9
Merge: e13067a 0047dd2
Author: Junio C Hamano <gitster@pobox.com>
Date:   Fri May 23 16:05:52 2008 -0700
    Merge branch 'sp/ignorecase'
    
    * sp/ignorecase:
      t0050: Fix merge test on case sensitive file systems
      t0050: Add test for case insensitive add
      t0050: Set core.ignorecase case to activate case insensitivity
      t0050: Test autodetect core.ignorecase
      git-init: autodetect core.ignorecase
Which comes from here:
commit 0047dd2fd1fc1980913901c5fa098357482c2842
Author: Steffen Prohaska <prohaska@zib.de>
Date:   Thu May 15 07:19:54 2008 +0200
    t0050: Fix merge test on case sensitive file systems
    
    On a case sensitive filesystem, "git reset --hard" might refuse to
    overwrite a file whose name differs only by case, even if
    core.ignorecase is set.  It is not clear which circumstances cause this
    behavior.  This commit simply works around the problem by removing
    the case changing file before running "git reset --hard".
    
    Signed-off-by: Steffen Prohaska <prohaska@zib.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
===========
>Or did the test pass from the very beginning?

Hm, reading the commit, it seems as if the "root problem" still exist: git reset --hard does not change the case of an existing file

What is the exist behvior?

My feeling is that the test as such deserves some more improvements, the result of the merge is not checked, files are empty so that the content is not checked.

Another improvement:
Running under Linux gives:
not ok 6 - add (with different case) # TODO known breakage
(and running under mingw failes)
 
Please stay tuned for more updates, thanks for reviewing.
/Torsten
Previous: Junio C Hamano
Message 3 of 3 in “t0050: mark TC merge (case change) as success”
  1. t0050: mark TC merge (case change) as successTorsten Bögershausen, Jan 13, 2013
  2. Junio C HamanoJan 13, 2013
  3. Torsten BögershausenJan 14, 2013

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.