mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Default status to 0 if undefined
This keeps the status-changed event from triggering the first time the status is requested as it goes from undefined to 0 which should be treated as no change.
This commit is contained in:
@@ -70,8 +70,8 @@ class Git
|
||||
@getRepo().getHead() ? ''
|
||||
|
||||
getPathStatus: (path) ->
|
||||
currentPathStatus = @statuses[path]
|
||||
pathStatus = @getRepo().getStatus(@relativize(path))
|
||||
currentPathStatus = @statuses[path] ? 0
|
||||
pathStatus = @getRepo().getStatus(@relativize(path)) ? 0
|
||||
if pathStatus > 0
|
||||
@statuses[path] = pathStatus
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user