Skip to content

fix: properly skip .git directory without aborting orphaned file cleanup#353

Open
takenoko-gohan wants to merge 1 commit intoBetaHuhn:masterfrom
takenoko-gohan:fix/delete-orphaned
Open

fix: properly skip .git directory without aborting orphaned file cleanup#353
takenoko-gohan wants to merge 1 commit intoBetaHuhn:masterfrom
takenoko-gohan:fix/delete-orphaned

Conversation

@takenoko-gohan
Copy link

Issues

  • The deleteOrphaned process is interrupted if a file beginning with “.git”, such as “.gitkeep”, exists.
  • The deleteOrphaned process is interrupted if a file such as “.git/index” exists.

What's changed

  • Skip processing when the file path begins with “.git/” or “.git\”.
  • Add debug logs for troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant