From b9274412c5409092ffa745fc46dada462b1bd81b Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 30 Oct 2013 14:41:01 -0700 Subject: [PATCH] Refresh index and status after opening repo Previously this relied on an initial window focus event firing to kick off the initial load. This focus event no longer fires in jquery 2.0 so just explicitly refresh the index and status when setting the project path. --- src/project.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/project.coffee b/src/project.coffee index 207c15efe..bd86feb53 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -118,7 +118,9 @@ class Project if projectPath? directory = if fsUtils.isDirectorySync(projectPath) then projectPath else path.dirname(projectPath) @rootDirectory = new Directory(directory) - @repo = Git.open(projectPath, project: this) + if @repo = Git.open(projectPath, project: this) + @repo.refreshIndex() + @repo.refreshStatus() else @rootDirectory = null