Skip to content

Unable to switch branch on GitHub desktop client #7718

Closed

Description

@SumGandhi

Version of GitHub in use - GitHub Desktop Version 2.0.3
Enterprise Repository setup of application code base
Steps to replicate the issue -
a) File --> Clone a repository
b) Under URL tab - and Local path -
c) Click on Clone button
d) Post cloning the repository is listed under "Other" and not "Enterprise" (Earlier it used to be listed under "Enterprise")
e) Unable to switch branches - by default "master" is selected.

Activity

  1. tierninho commented on Jun 6, 2019

    @tierninho
    Contributor

    @SumGandhi Please go the Help menu in Desktop and attached your logs so be have more insight into your issue. Thanks!

  2. iAmWillShepherd commented on Jun 6, 2019

    @iAmWillShepherd
    Contributor

    @SumGandhi

    Some quick questions

    1. When you click the Branch List, do you see any branches?
    2. Are you able to checkout another branch using the CLI?
  3. added
    more-info-needed
    on Jun 6, 2019
  4. SumGandhi commented on Jun 7, 2019

    @SumGandhi
    Author
  5. steveward commented on Jun 7, 2019

    @steveward
    Contributor

    @SumGandhi thanks for sharing those extra details. Would you be able to upload the log file so that we could take a closer look at what might be happening here?

    To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs in Finder (macOS) or Explorer (Windows).

    The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

  6. SumGandhi commented on Jun 7, 2019

    @SumGandhi
    Author

    Git-DesktopClient-logs.txt
    Attached are the log files as requested.

  7. changed the title [-]Unable to switch branch on Githun desktop client[/-] [+]Unable to switch branch on GitHub desktop client[/+] on Jun 7, 2019
  8. shiftkey commented on Jun 7, 2019

    @shiftkey
    Member
    1. I have tried to checkout another branch and same behavior. I discovered
      this issue only yesterday and the branches with which I have local
      repository setup during the past weeks, are still working fine
      . Any new
      clone repository, I am seeing it listed under "Other" and not "Enterprise" - which usually was the case.

    @SumGandhi this is an interesting clue. I wonder if there's something with how we handle local branches versus remote branches with the changes to "Switch branch".

    If you're working with a fresh clone of a repository, it's possible that all the branches are "remote" until that first checkout, when we create a local branch that tracks the remote branch.

    Can you confirm if that makes sense to you, based on your steps to reproduce the problem?

  9. SumGandhi commented on Jun 7, 2019

    @SumGandhi
    Author

    @shiftkey, thanks for your response. I just checked few workspaces that I set up by cloning "remote" repository during past week and they are still listed under "Enterprise" on Github desktop client and workable (meaning i am able to switch branches). However, if I make a fresh clone to that very same "remote" repository today, it gets reflected under "Other" and branch switch issue persists.
    Hope I am able to articulate the problem that makes sense.

  10. shiftkey commented on Jun 7, 2019

    @shiftkey
    Member

    @SumGandhi thanks for the extra information and for working through us with it.

    It's not clear to me currently why these might be getting re-categorized under "Other", let alone how that affects checkout, but we'll follow up if we have any other questions.

  11. SumGandhi commented on Jun 7, 2019

    @SumGandhi
    Author

    Update/More Info in regard with this issue - I received a notification on GitHub desktop client regarding an upgrade in version which I believe has been recently released (version 2.0.3). The issue might be related to some fixes that were released as a part of this upgrade (merely speculating because of the timing of the issue).
    Also, I had "Write" access to the repository. When I contacted the Admin and got my access changed to Admin (because the issue was not replicable on Admin's machine), my issue got resolved and on cloning the "remote" repository - it started appearing under "Enterprise" instead of "Other". So, the issue appears to be related to role/access specific.
    Hope these inputs steer us towards finding the root cause of the issue. Please share your findings.

  12. SumGandhi commented on Jun 7, 2019

    @SumGandhi
    Author

    @ALL, this issue definitely seems to be introduced with version 2.0.3 release. I reverted back to an older version (1.2.3) and clone repository (remote) is working fine with "Write" access - repository getting listed under "Enterprise". So, latest release fixes needs to be reviewed in tandem with the issue reported in this thread.
    Also, it shows a message on old GitHub desktop client (version 1.2.3) that it will automatically upgrade to latest version on next restart. Is there any way to prevent that from happening? I explored but could not find an option to turn off auto upgrade?

  13. bill-homelab commented on Jun 7, 2019

    @bill-homelab

    I'm experiencing the same problems:

    1. The cloned Enterprise repository is listed under "Other".
    2. I can also see all branches listed in the dropdown but am unable to actually switch to any branch; I'm stuck on master.

    BUT ALSO ... 3) The repository name is not being kept as selected from the remote list, but is being changed to the rightmost subdirectory name in which I am placing the local copy. In my case that's "by". It looks very odd seeing:

    Other
    [icon] by

    in my repository list!

    This started on June 6th (USA day) not long after receiving version 2. I'm currently on 2.0.3. I'm available if you want logs, etc.

  14. tierninho commented on Jun 7, 2019

    @tierninho
    Contributor

    @bill01568 Yes, please send over the logs -- see the Help menu on Desktop. Also, anything unique about your setup? Thanks!

  15. bill-homelab commented on Jun 7, 2019

    @bill-homelab

    Not aware of anything unique about my setup. I still consider myself a newbie.

    2019-06-06.desktop.production.log
    2019-06-07.desktop.production.log

  16. 4 remaining items

  17. shiftkey commented on Jun 11, 2019

    @shiftkey
    Member

    Assigning myself to check in on this after 2.0.4 has shipped

  18. added
    bug
    and removed
    more-info-needed
    on Jun 12, 2019
  19. shiftkey commented on Jun 12, 2019

    @shiftkey
    Member

    @pyamaura a release is being prepared that should resolve this - aiming to publish in the next couple of hours...

  20. sachinmathur commented on Jun 12, 2019

    @sachinmathur

    @shiftkey I am eagerly waiting for the fix of this issue. This issue has impacted me since I upgraded to 2.0.3 on Monday. I have the same observations as @SumGandhi

  21. sachinmathur commented on Jun 12, 2019

    @sachinmathur

    @shiftkey I can confirm that fix released with 2.0.4 is working fine for me.

  22. shiftkey commented on Jun 12, 2019

    @shiftkey
    Member

    @sachinmathur thank you for confirming the fix. @pyamaura @kchristman54 @bill01568 @SumGandhi can you also confirm?

  23. bill-homelab commented on Jun 12, 2019

    @bill-homelab

    All 3 issues that I reported above are resolved by 2.0.4. Thank you! I can now work again!

  24. billygriffin commented on Jun 12, 2019

    @billygriffin
    Contributor

    Thanks @bill01568, great to hear and apologies for the disruption! I'm going to close this since multiple folks have verified the fix.

  25. pyamaura commented on Jun 12, 2019

    @pyamaura
  26. SumGandhi commented on Jun 12, 2019

    @SumGandhi
    Author
  27. arjunkalarikkal commented on Jul 7, 2020

    @arjunkalarikkal
  28. tierninho commented on Jul 7, 2020

    @tierninho
    Contributor

    @arjunkalarikkal Thanks for the notice. I added your comments to a known issue for this here: #9297 (comment)

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions