Skip to content

File is always marked as modified in git status #1416

Closed
@geotavros

Description

@geotavros
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.15.1.windows.2
built from commit: 5d5baf91824ec7750b103c8b7c4827ffac202feb
sizeof-long: 4
machine: x86_64
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Nano
Path Option: BashOnly
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

No.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

git clone https://bitbucket.org/reactivedropteam/reactivedrop_public_src_modified_file_bug.git
cd reactivedrop_public_src_modified_file_bug
git checkout weapon-gas-grenade
git status
  • What did you expect to occur after running these commands?

Expect no modified files.

  • What actually happened instead?

File reactivedrop/resource/ReactiveDrop_english.txt is marked as modified.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

https://bitbucket.org/reactivedropteam/reactivedrop_public_src_modified_file_bug

weapon-gas-grenade branch was created earlier in the repository. After that we normalized line endings in the repository and pushed commits starting from d3ee316. We rebased weapon-gas-grenade onto reactivedrop_public branch(commit 17f7f12). And force pushed it.

I assume the problem is that weapon-gas-grenade adds this file ReactiveDrop_english.txt in lower case naming(reactivedrop_english.txt commit db5c411), but this file already existed in mixed case naming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions