Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with .gitkeep file and .env file after renaming folder #7401

Open
rebot opened this issue Feb 26, 2025 · 2 comments
Open

Problem with .gitkeep file and .env file after renaming folder #7401

rebot opened this issue Feb 26, 2025 · 2 comments
Labels
bug Something isn't working 🎉reproduced🎉 The issue could be reproduced by following the instructions

Comments

@rebot
Copy link

rebot commented Feb 26, 2025

Gitbutler version: Version 0.14.8 (20250221.083849)

After renaming a folder, two files, .gitkeep and .env, are listed as "added" files in Gitbutler, while actually, they are removed.

Image

See VSCode:
Image

This causes some issues:
Image

To give some context, both files are empty.

Haven't tried to replicate this in another project yet.

@rebot
Copy link
Author

rebot commented Feb 26, 2025

I was able to fix it by first adding some content to the files (to make them 'non-empty'), commit it, then delete them. Only then, Gitbutler recongnised that the files where deleted instead of added.

@Byron
Copy link
Collaborator

Byron commented Feb 26, 2025

Thanks a lot for reporting!

I was able to reproduce it:

Image

In the upcoming major release, this fortunately is fixed:

Image

It's notable that rename-detection is deactivated for empty files on purpose so they don't appear renamed.
Hence, this will definitely be fixed in the next major release.

@Byron Byron added bug Something isn't working 🎉reproduced🎉 The issue could be reproduced by following the instructions labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🎉reproduced🎉 The issue could be reproduced by following the instructions
Projects
None yet
Development

No branches or pull requests

2 participants