diff --git a/lib/controllers/git-tab-controller.js b/lib/controllers/git-tab-controller.js index 1cdde65f9a..ac5710fb69 100644 --- a/lib/controllers/git-tab-controller.js +++ b/lib/controllers/git-tab-controller.js @@ -98,7 +98,7 @@ export default class GitTabController { lastCommit: repository.getLastCommit(), isMerging: repository.isMerging(), isRebasing: repository.isRebasing(), - branchName: repository.getCurrentBranch(), + currentBranch: repository.getCurrentBranch(), branches: repository.getBranches(), remoteName: repository.getRemoteForBranch(this.branchName), unstagedChanges: repository.getUnstagedChanges(), diff --git a/lib/controllers/github-tab-controller.js b/lib/controllers/github-tab-controller.js index 08f3d5649d..3ccb66943b 100644 --- a/lib/controllers/github-tab-controller.js +++ b/lib/controllers/github-tab-controller.js @@ -6,23 +6,23 @@ import RemotePrController from './remote-pr-controller'; import Repository from '../models/repository'; import GithubLoginModel from '../models/github-login-model'; import ObserveModel from '../decorators/observe-model'; -import {RemotePropType} from '../prop-types'; +import {RemotePropType, BranchPropType} from '../prop-types'; class RemoteSelector extends React.Component { static propTypes = { remotes: React.PropTypes.arrayOf(RemotePropType).isRequired, - currentBranch: React.PropTypes.string.isRequired, + currentBranchName: React.PropTypes.string.isRequired, selectRemote: React.PropTypes.func.isRequired, } render() { - const {remotes, currentBranch, selectRemote} = this.props; + const {remotes, currentBranchName, selectRemote} = this.props; return (

This repository has multiple remotes hosted at GitHub.com. Select a remote to see pull requests associated - with the {currentBranch} branch. + with the {currentBranchName} branch.