mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Grab the branch from the async layer.
This commit is contained in:
@@ -470,7 +470,9 @@ class GitRepository
|
||||
#
|
||||
# Returns a promise that resolves when the repository has been refreshed.
|
||||
refreshStatus: ->
|
||||
asyncRefresh = @async.refreshStatus()
|
||||
asyncRefresh = @async.refreshStatus().then =>
|
||||
@branch = @async.branch
|
||||
|
||||
syncRefresh = new Promise (resolve, reject) =>
|
||||
@handlerPath ?= require.resolve('./repository-status-handler')
|
||||
|
||||
@@ -487,7 +489,6 @@ class GitRepository
|
||||
|
||||
@statuses = statuses
|
||||
@upstream = upstream
|
||||
@branch = branch
|
||||
@submodules = submodules
|
||||
|
||||
for submodulePath, submoduleRepo of @getRepo().submodules
|
||||
|
||||
Reference in New Issue
Block a user