mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Always update the cached status path.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user