Always update the cached status path.

This commit is contained in:
joshaber
2016-03-25 17:13:06 -04:00
parent 3db54ebdef
commit 8ee1c3274b

View File

@@ -347,10 +347,7 @@ class GitRepository
pathStatus = repo.getStatus(repo.relativize(path)) ? 0
pathStatus = 0 if repo.isStatusIgnored(pathStatus)
if pathStatus > 0
@statusesByPath[relativePath] = pathStatus
else
delete @statusesByPath[relativePath]
@statusesByPath[relativePath] = pathStatus
if currentPathStatus isnt pathStatus
@emitter.emit 'did-change-status', {path, pathStatus}