Bug 508365

Summary: Included in .gitignore and/or untracked folders are shown as 'up-to-date'
Product: [Applications] dolphin Reporter: Damglador <vse.stopchanskyi>
Component: plugins: gitAssignee: Sebastian Dörner <sebastian>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: src/ and folders in it shown as 'up-to-date' despite being in gitignore

Description Damglador 2025-08-17 01:12:27 UTC
Created attachment 184167 [details]
src/ and folders in it shown as 'up-to-date' despite being in gitignore

SUMMARY
A folder that is in .gitignore, unlike files, is still shown as tracked with an "up-to-date" icon, this also applies to all folders in that folder (screenshot attached). They are also shown as up-to-date even before `git add .` is run.

STEPS TO REPRODUCE
1. Create a test repository:
mkdir test
cd test
git init
touch file
mkdir -p folder/folder-in-folder
touch folder/file-in-folder
echo "folder" > .gitignore
2. Open it in Dolphin

OBSERVED RESULT
folder and folder-in-folder have green checkmark on them even though they're git ignored and not tracked

EXPECTED RESULT
An untracked or/and added to gitignore folder and all its content, including other folders, shouldn't have any marks on them.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.0-zen2-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 16 GiB of RAM (13.5 GiB usable)
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

ADDITIONAL INFORMATION