App hangs for 2-3 minutes during/after changes to many files in ignored dir (eg node_modules)

XMLWordPrintable

    • 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:

        1. sourcetree-sample.txt
          77 kB
        2. sourcetree-spindump.txt
          5.57 MB

            Assignee:
            Unassigned
            Reporter:
            Richard Barnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: