Skip to content

history UI out of sync with repository after pulling with merge #2737

Closed

Description

@1nfinite9

Description

Commits that were created and pushed to remote repository from other people are not shown in the History tab.

Version

GitHub Desktop version: 0.8.2

OS version: Microsoft Windows [10.0.14393]

Steps to Reproduce

  1. Commit A on local repository on Mac and push to remote (shared bare repository not on Github)
  2. Commit B on local repository on Windows before pulling A from remote
  3. Pull from remote, merge and push changes back to remote

Expected behavior: Both commit A and B should appear in the History tab.

Actual behavior: On Mac, both commits are shown, but on Windows only the local commit and merge commit is shown.

Reproduces how often: Only initially after pulling the changes from remote. After restarting, all the commits are properly shown again.

Activity

  1. added
    bug
    more-info-needed
    on Sep 15, 2017
  2. joshaber commented on Sep 15, 2017

    @joshaber
    Contributor

    Thanks @1nfinite9!

    When you pull on Windows, are you on the Changes or History tab? If you switch to a different repository and back, does it show the commits?

  3. 1nfinite9 commented on Sep 19, 2017

    @1nfinite9
    Author

    Thanks for your reply, @joshaber.

    I tried pulling on both the Changes and History tab but same result.
    Also got same results even after changing to different repository.

  4. added
    investigation-needed
    and removed
    more-info-needed
    on Sep 25, 2017
  5. added this to the 1.0.x milestone on Sep 26, 2017
  6. removed
    bug
    on Oct 16, 2017
  7. stale commented on Oct 30, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

  8. self-assigned this
    on Oct 30, 2017
  9. 1nfinite9 commented on Oct 30, 2017

    @1nfinite9
    Author

    Still happens on version 1.0.6.

    What else can I provide that will help with reproduction?
    Could it be because a merge is happening when I pull on Windows?

  10. shiftkey commented on Oct 30, 2017

    @shiftkey
    Member

    @1nfinite9 this has kind of fallen down the list because the repro requires a bunch of setup. The only additional things I can think of is screenshots the different history views show them being different, but that's minor.

  11. stale commented on Nov 13, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

  12. 2 remaining items

  13. removed their assignment
    on Nov 23, 2017
  14. self-assigned this
    on Dec 6, 2017
  15. shiftkey commented on Dec 8, 2017

    @shiftkey
    Member

    There's definitely something up in here, but I'm not sure it's the original issue as reported.

    1. Commit A on local repository on Mac and push to remote (shared bare repository not on Github)
    2. Commit B on local repository on Windows before pulling A from remote

    I wasn't able to reproduce this scenario as-is because - if you're also working from a bare repository on the Windows side - this should end up in a known limitation of Git when you pull at this point:

    This happens when you create two distinct "initial" commits in a Git repository and try to merge them. We're tracking this in #1484 which has some extra details.

    With that in mind, I went down a slightly different path to try and recreate the issue with not showing all commits.

    Here's the steps I went through (this is on 1.0.10):

    • blank repository on GitHub
    • commit and push from macOS
    • clone on Windows (so they both have first commit)
    • create another commit on macOS and push
    • create a commit on Windows
    • fetch so that you see both a local and remote commit
    • pull to merge remote commits
    • push to send the merge to the remote

    So here's what we have:

    And using git lg to look at the log visually:

    *   a66d84d - (HEAD -> master, origin/master) Merge branch 'master' of https://github.com/shiftkey/testing-blank-repo-commits (3 minutes ago) <Brendan Forster>
    |\
    | * 8d438c7 - added third file (3 minutes ago) <Brendan Forster>
    * | 44caf1a - words go here (4 minutes ago) <Brendan Forster>
    |/
    * e4cebda - added first file (6 minutes ago) <Brendan Forster>
    

    And here's the History view for Windows:

    But on macOS we're actually missing one commit (the second one, which was created on macOS):

    And this comes good after restarting the app, which is what @1nfinite9 also saw:

    Not quite sure where this is lurking, but at least I've now seen it with my own eyes.

  16. added
    bug
    and removed
    investigation-needed
    on Dec 8, 2017
  17. changed the title [-]Remote commits not shown on Windows initially[/-] [+]history out of sync with repository after pulling with merge[/+] on Dec 8, 2017
  18. changed the title [-]history out of sync with repository after pulling with merge[/-] [+]history UI out of sync with repository after pulling with merge[/+] on Dec 8, 2017
  19. deleted a comment from vendredvd on Jan 3, 2018
  20. mungojam commented on Jun 5, 2018

    @mungojam

    @shiftkey

    Getting this still in latest version (1.2.2) on windows:

    The two commits that my colleague made show up in git log but not in GitHub desktop. His later changes do show up.

    image

  21. mungojam commented on Jun 5, 2018

    @mungojam

    Now discovered #3704 which covers my issue and describes how it can be worked around by restarting GitHub Desktop

  22. locked as resolved and limited conversation to collaborators on Aug 4, 2018
  23. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions