Skip to content

show the right remote, not the default remote - #802

Merged
joshaber merged 12 commits into
masterfrom
respect-the-remote
Jan 18, 2017
Merged

joshaber merged 12 commits into
masterfrom
respect-the-remote

Conversation

@shiftkey

@shiftkey shiftkey commented Jan 17, 2017 •

Copy link
Copy Markdown
Member

The current master build will not look at the current branch state when drawing the push/pull button:

In this case, the branch is tracking a different remote:

For push/pull operations, we look at the branch state so they're unaffected by this change, but fetch looks at this value which means it might not be updating the remote.

  • add regression tests to check for remote
  • change fetch to fetch for all remotes?

@shiftkey shiftkey changed the title [WIP] show the right remote, not the default remote show the right remote, not the default remote Jan 17, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

Ready for review

@shiftkey shiftkey changed the title show the right remote, not the default remote [HOLD] show the right remote, not the default remote Jan 17, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

This will likely conflict with #801, so let's get that in first.

@shiftkey shiftkey changed the title [HOLD] show the right remote, not the default remote show the right remote, not the default remote Jan 18, 2017
@joshaber joshaber self-assigned this Jan 18, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit, otherwise this looks great 👍

if (tip.kind === TipState.Valid) {
const branch = tip.branch
if (branch.remote) {
// TODO: clean this up

This comment was marked as spam.

This comment was marked as spam.

@joshaber
joshaber merged commit c8b7053 into master Jan 18, 2017
@joshaber
joshaber deleted the respect-the-remote branch January 18, 2017 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants