Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
TortoiseGit
TortoiseGit
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 187
    • Issues 187
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • TortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3300

Closed
Open
Opened Nov 13, 2018 by Jan Stotz@jpstotz
  • Report abuse
  • New issue
Report abuse New issue

TGitCache often locks sub-directories of an ignored directory

In my git repo I have a directory named work-directory which is ignored by the .gitignore in the root folder of the git repo (using the entry work-directory/). When I use the Windows Explorer with installed Tortoise Git shell extension it often happens that one ore more subfolders are locked by one of the TGitCache.exe processes (open handle that prevents deletion).

What steps will reproduce the problem?

  1. Create a repo with with several commited files and one directory marked as ignore via .gitignore on root level
  2. Create multiple directories and files inside the ignored directory
  3. Open the ignored directory and one of it's subdirectories in Windows Explorer
  4. Do something with TortoiseGit on that project and folders (non-deterministic/ I don't know the exact steps to reproduce)
  5. Delete everything inside the ignored work-directory

What is the expected output? What do you see instead?

From time to time some solder(s) can't be deleted because TGitCache.exe has open handles to subdirectories which prevent deletion.

What version of TortoiseGit and Git are you using? On what operating system?

  • TortoiseGit 2.7.0
  • Git 2.18.0

Related issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: tortoisegit/tortoisegit#3300