git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* issue unable to commit file and folder name to upper lower case
@ 2023-11-07 11:28 chengpu lee
  2023-11-07 17:35 ` Torsten Bögershausen
  0 siblings, 1 reply; 3+ messages in thread
From: chengpu lee @ 2023-11-07 11:28 UTC (permalink / raw)
  To: git


[-- Attachment #1.1: Type: text/plain, Size: 1972 bytes --]

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
$ mkdir abc

$ echo "">abc/.keep

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        abc/

$ mv abc Abc

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        Abc/                                                      # rename
to Abc/ successfully

$ git commit -m "commit Abc/"                                     # commit

$ mv Abc abc

$ git status
On branch master
nothing to commit, working tree clean                             # cannot
rename again

$ git diff
>""

$ git add .

$ git commit -m "Cannot rename from Abc/ to abc/"
On branch master
nothing to commit, working tree clean                             # cannot
commit to right, keep old file name / folder name


What did you expect to happen? (Expected behavior)
It should be correct to new name although just change upper/lower case,
because other commiter can pull it from repo or improve reading clarity.

What happened instead? (Actual behavior)
can commit file/folder but cannot fix upper/lower case.

What's different between what you expected and what actually happened?
git unable to faithfully represent file/folder upper/lower case changes.

Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.40.0.windows.1
cpu: x86_64
built from commit: 1d90ca2906dd4b7ddaf0669a13c173ec579d794a
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 19045
compiler info: gnuc: 12.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe


[Enabled Hooks]

[-- Attachment #1.2: Type: text/html, Size: 2378 bytes --]

[-- Attachment #2: git-bugreport-2023-11-07-1855.txt --]
[-- Type: text/plain, Size: 1973 bytes --]

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
$ mkdir abc

$ echo "">abc/.keep

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        abc/

$ mv abc Abc

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        Abc/                                                      # rename to Abc/ successfully

$ git commit -m "commit Abc/"                                     # commit

$ mv Abc abc

$ git status
On branch master
nothing to commit, working tree clean                             # cannot rename again

$ git diff
>""

$ git add .

$ git commit -m "Cannot rename from Abc/ to abc/"
On branch master
nothing to commit, working tree clean                             # cannot commit to right, keep old file name / folder name


What did you expect to happen? (Expected behavior)
It should be correct to new name although just change upper/lower case, because other commiter can pull it from repo or improve reading clarity.

What happened instead? (Actual behavior)
can commit file/folder but cannot fix upper/lower case.

What's different between what you expected and what actually happened?
git unable to faithfully represent file/folder upper/lower case changes.

Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.40.0.windows.1
cpu: x86_64
built from commit: 1d90ca2906dd4b7ddaf0669a13c173ec579d794a
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 19045 
compiler info: gnuc: 12.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe


[Enabled Hooks]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-08  1:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-07 11:28 issue unable to commit file and folder name to upper lower case chengpu lee
2023-11-07 17:35 ` Torsten Bögershausen
2023-11-08  1:48   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).