Skip to content

Git Manager shows false unstaged deletions after case-only directory rename #2127

Closed

Description

@Wadamzmail

Git Manager may incorrectly report deleted files as unstaged changes after renaming a directory by changing only its capitalization, for example, Formatter/ → formatter/ .

The issue was observed in an AndroidIDE project using JGit. After staging all changes and committing/pushing them through the terminal, git status --short reports a clean working tree, but Git Manager continues to display deleted files from the old directory as unstaged changes.

Example diff:

diff --git a/Formatter/libs/jackson-module-parameter-names-2.18.3.jar b/Formatter/libs/jackson-module-parameter-names-2.18.3.jar
deleted file mode 100644
index c3adbaa..0000000
--- a/Formatter/libs/jackson-module-parameter-names-2.18.3.jar

Binary files differ

Steps to reproduce

  1. Open a Git repository on a filesystem that is case-insensitive or has core.ignorecase=true .
  2. Rename a tracked directory using only a case change, such as Formatter/ to formatter/ .
  3. Stage all changes and commit/push them.
  4. Verify that "git status --short" reports no changes.
  5. Open Git Manager and inspect the unstaged changes.

Expected behavior

Git Manager should reflect the actual Git working-tree status and should not display stale or false unstaged deletions after the repository becomes clean.

Actual behavior

Git Manager continues to display deleted files under the old directory name as unstaged changes, even though the terminal reports a clean working tree.

Technical notes

The repository uses JGit. The current implementation obtains status through git.status().call() and calculates unstaged diffs by comparing DirCacheIterator with FileTreeIterator in getDiff() .

The affected repository contained both Formatter/ and formatter/ in the Git tree, with identical tree hashes. The environment reported core.ignorecase=true .

Further investigation is needed to determine whether the issue originates in JGit status/diff handling, filesystem case sensitivity, or Git Manager's change classification and refresh logic.

Suggested investigation

  • Reproduce with a case-only directory rename on a case-insensitive filesystem.
  • Compare JGit's Status and DiffFormatter results with the native Git CLI.
  • Check whether the index contains paths that differ only by capitalization.
  • Ensure Git Manager refreshes and classifies staged and unstaged changes consistently.
Image

Activity

  1. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    Tracked in Jira: ADFA-6474

  2. added
    bug
    on Oct 12, 2026
  3. linked a pull request that will close this issueADFA-6474: Git manager updates #2147on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions