-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 2.4.1, 2.6.3
-
Component/s: Git
-
None
-
Environment:
SourceTree 2.6.3: OSX Sierra 10.12.6, embedded Git 2.10.1
SourceTree 2.4.1: OSX Yosemite, unknown embedded Git version.
-
Severity 2 - Major
I have a bookmark for a Git repo containing a directory with a npm package.json file. `npm install` in this dir creates/updates ~200k files in `node_modules` subdir.
My `~/.gitignore_global` contains (amongst others)
node_modules/ bin/
The repo `.gitignore` also contains
node_modules/
When I start SourceTree, the app works as expected. In the window for the above repo, Workspace > File status for "All files" doesn't show files that should be ignored.
If I delete the `node_modules` directory, SourceTree hangs, displaying the spinning "beachball" for ~2-3 minutes. Behaviour is similar when using `npm install` to populate the dir, or to make large updates to the dir.
This occurs even if the repo window isn't open but the repository browser window is open.
`git status` executes swiftly.
Expected behaviour: since `node_modules` is ignored, changes to files in this directory shouldn't cause noticeable effects to SourceTree.
Attaching:
- sourcetree-sample.txt
- Sample of app in "hanging" state, taken using Activity Monitor - sourcetree-spindump.txt
- Spindump of app in "hanging" state taken using Activity Monitor