diff --git a/src/app/git.coffee b/src/app/git.coffee index 0d47cefb5..761084c57 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -141,7 +141,7 @@ class Git directoryStatus getAheadBehindCounts: -> - @getRepo().getAheadBehindCounts() + @getRepo().getAheadBehindCounts() ? ahead: 0, behind: 0 getLineDiffs: (path, text) -> @getRepo().getLineDiffs(@relativize(path), text) ? [] diff --git a/src/app/repository-status-handler.coffee b/src/app/repository-status-handler.coffee index b01cdf437..5503396ce 100644 --- a/src/app/repository-status-handler.coffee +++ b/src/app/repository-status-handler.coffee @@ -9,7 +9,7 @@ module.exports = statuses = {} for path, status of repo.getRepo().getStatuses() statuses[fs.join(workingDirectoryPath, path)] = status - upstream = repo.getAheadBehindCounts() ? {ahead: 0, behind: 0} + upstream = repo.getAheadBehindCounts() repo.destroy() else upstream = {}