Skip to content

Upstream error doesn't allow user to pull #3766

Closed

Description

@tierninho

I ran across an existing error message guided me to "pull" despite the option being greyed out in the menu. I purposely created the same branch on Desktop and on GitHub.com and tried to "merge" them via Desktop.

screen shot 2018-01-11 at 9 51 44 am

When creating a local branch with one commit (left the branch unpublished), and also creating the same branch on GitHub.com with a separate PR, the result on Desktop was an error asking me to pull down the latest changes: "The repository has been updated since you last pulled. Try pulling before pushing."

Note sure how relevant this use case is, but the error could be updated to reflect another action the user could take. 🤔

Activity

  1. shiftkey commented on Jan 11, 2018

    @shiftkey
    Member

    "The repository has been updated since you last pulled. Try pulling before pushing."

    Does the button then switch to saying "pull", or does it get stuck in this loop because the branch doesn't have tracking information set?

  2. tierninho commented on Jan 11, 2018

    @tierninho
    ContributorAuthor
  3. tierninho commented on Jan 12, 2018

    @tierninho
    ContributorAuthor

    We are also displaying the an open PR for the same branch...

    screen shot 2018-01-12 at 11 08 54 am

  4. added
    investigation-needed
    on Jan 31, 2018
  5. nerdneha commented on Feb 6, 2018

    @nerdneha
    Contributor

    Adding in some notes after thinking but there is still pending reproduction + a potential fix

    Steps to reproduce:

    1. clone a repo from github
    2. create a branch via desktop
    3. make a change + commit
    4. create a a branch on dotCom with the same name
    5. go back to desktop
    6. attempt to publish your branch
    7. you should see an error dialogue
    8. close dialogue and get stuck forever

    this is particularly hard because we are pushing without having the correct remote reference

    • before pulling we should set a tracking branch, if there is a remote (do in all cases)
    • then we should merge the remote branch into ours
    • if all goes well, then we can push again after and we should do this automatically
  6. added
    bug
    and removed
    investigation-needed
    on Jul 3, 2018
  7. added
    priority-3
    on Oct 11, 2018
  8. tierninho commented on Mar 18, 2019

    @tierninho
    ContributorAuthor

    Closing this as it has not come up enough times to be validated as a real problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions