threads / discuss / 24674

Possible git status problem at case insensitive file system

Subject: Possible git status problem at case insensitive file system

## tl;dr

4 messages between Aug 9, 2010 and Jun 20, 2018.

replies: 3people: 4as markdown or json

Frank Li· Aug 9, 2010, 04:22 UTC · lore
All:
        I use msysgit 1.7.0.2 at windows xp.
        Problem: git status will list tracked directory as untracked dir.
        Duplicate:
        1. mkdir test, cd test
        2. git init-db
        3. mkdir d, cd d
        4. touch a.c
        5. git add a.c
        6. git commit -a -m "test"
        7. cd ..
        8.  mv d d1
        9.  mv d1 D
       10. git status

# On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # D/ nothing added to commit but untracked files present (use "git add" to track)

        D/ should be same as d/ at case insensitive file system.
        D/ should not listed by git status.

best regards Frank Li

Johannes Sixt· Aug 9, 2010, 08:16 UTC · re: Frank Li · lore

Re: Possible git status problem at case insensitive file system

Am 8/9/2010 6:22, schrieb Frank Li:
> [about renaming a directory such that only the case changes]

This is normal/expected behavior. A patch series is in the works that addresses the issue.

-- Hannes
Johannes Schindelin· Jun 20, 2018, 11:26 UTC · re: Frank Li · lore

Re: [msysGit] Possible git status problem at case insensitive file system

Hi Frank,
On Mon, 9 Aug 2010, Frank Li wrote:
> All:
>         I use msysgit 1.7.0.2 at windows xp.
>         Problem: git status will list tracked directory as untracked dir.

That is the *least* problem you have with that version: you are vulnerable to several security issues.

Sadly, there were literally zero contributions from community members using Windows XP to uphold XP support, so the latest Git for Windows you can use (unless you build it yourself, fixing several compile issues by now) is v2.10.

See https://gitforwindows.org/requirements.html for details.

Ciao, Johannes

Philip Oakley· Jun 20, 2018, 23:31 UTC · re: Frank Li · lore

Re: [msysGit] Possible git status problem at case insensitive file system

Hi Frank,
Your system Clock looks to be providing the wrong date for your emails.

The last XP version was https://github.com/git-for-windows/git/releases/tag/v2.10.0.windows.1 so you may want to upgrade to that. (see FAQs https://github.com/git-for-windows/git/wiki/FAQ)

It won't solve the capitalisation problem - that is a Windows FS issue. Git assumes case matters, but the FS will fetch directories and branches case insensitively.

Philip
----- Original Message ----- 
From: "Frank Li" <lznuaa@gmail.com>
To: "Git List" <git@vger.kernel.org>; "msysGit" <msysgit@googlegroups.com>
Sent: Monday, August 09, 2010 5:22 AM
Subject: [msysGit] Possible git status problem at case insensitive file 
system
Show 57 quoted lines
> All:
>        I use msysgit 1.7.0.2 at windows xp.
>        Problem: git status will list tracked directory as untracked dir.
>        Duplicate:
>        1. mkdir test, cd test
>        2. git init-db
>        3. mkdir d, cd d
>        4. touch a.c
>        5. git add a.c
>        6. git commit -a -m "test"
>        7. cd ..
>        8.  mv d d1
>        9.  mv d1 D
>       10. git status
>
>
> # On branch master
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       D/
> nothing added to commit but untracked files present (use "git add" to 
> track)
>
>        D/ should be same as d/ at case insensitive file system.
>        D/ should not listed by git status.
>
> best regards
> Frank Li
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> -- 
> -- 
> *** Please reply-to-all at all times ***
> *** (do not pretend to know who is subscribed and who is not) ***
> *** Please avoid top-posting. ***
> The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github 
> accounts are free.
>
> You received this message because you are subscribed to the Google
> Groups "msysGit" group.
> To post to this group, send email to msysgit@googlegroups.com
> To unsubscribe from this group, send email to
> msysgit+unsubscribe@googlegroups.com
> For more options, and view previous threads, visit this group at
> http://groups.google.com/group/msysgit?hl=en_US?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Git for Windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to msysgit+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 

← back to recent threads