git clean -Xdf doesn't clean ignored files in subfolders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I'm seeing some unexpected behavior with git clean:

git init test
cd test
echo "ignored.txt" > .gitignore
mkdir folder
touch folder/ignored.txt
git clean -Xdf

I'd expect this to delete folder/ignored.txt, and instead it doesn't.
I'm in git 2.29.2 on osx.

I saw that git clean -xdn does delete the file, so if this is a bug
it's limited to -X.

Thanks!
Dave



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux