You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to switch branch on GitHub desktop client #7718
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.
Thanks for looking into my issue.
Response to your questions -
1. Yes, I can see the other branches when i click on Branch List. However,
when I try to switch to another branch (from master), its not letting me
do so.
2. 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.
Thanks & Regards,
Sumit Gandhi
@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.
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?
@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.
@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.
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.
@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?
The cloned Enterprise repository is listed under "Other".
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.
@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
Activity
tierninho commentedon Jun 6, 2019
@SumGandhi Please go the
Helpmenu in Desktop and attached your logs so be have more insight into your issue. Thanks!iAmWillShepherd commentedon Jun 6, 2019
@SumGandhi
Some quick questions
SumGandhi commentedon Jun 7, 2019
steveward commentedon Jun 7, 2019
@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.
SumGandhi commentedon Jun 7, 2019
Git-DesktopClient-logs.txt
Attached are the log files as requested.
[-]Unable to switch branch on Githun desktop client[/-][+]Unable to switch branch on GitHub desktop client[/+]shiftkey commentedon Jun 7, 2019
@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?
SumGandhi commentedon Jun 7, 2019
@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.
shiftkey commentedon Jun 7, 2019
@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.
SumGandhi commentedon Jun 7, 2019
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.
SumGandhi commentedon Jun 7, 2019
@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?
bill-homelab commentedon Jun 7, 2019
I'm experiencing the same problems:
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.
tierninho commentedon Jun 7, 2019
@bill01568 Yes, please send over the logs -- see the Help menu on Desktop. Also, anything unique about your setup? Thanks!
bill-homelab commentedon Jun 7, 2019
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
4 remaining items
shiftkey commentedon Jun 11, 2019
Assigning myself to check in on this after
2.0.4has shippedshiftkey commentedon Jun 12, 2019
@pyamaura a release is being prepared that should resolve this - aiming to publish in the next couple of hours...
sachinmathur commentedon Jun 12, 2019
@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
sachinmathur commentedon Jun 12, 2019
@shiftkey I can confirm that fix released with 2.0.4 is working fine for me.
shiftkey commentedon Jun 12, 2019
@sachinmathur thank you for confirming the fix. @pyamaura @kchristman54 @bill01568 @SumGandhi can you also confirm?
bill-homelab commentedon Jun 12, 2019
All 3 issues that I reported above are resolved by 2.0.4. Thank you! I can now work again!
billygriffin commentedon Jun 12, 2019
Thanks @bill01568, great to hear and apologies for the disruption! I'm going to close this since multiple folks have verified the fix.
pyamaura commentedon Jun 12, 2019
SumGandhi commentedon Jun 12, 2019
arjunkalarikkal commentedon Jul 7, 2020
Hi,
I am facing the same error on Github desktop.
My version is 2.5.3
logs: https://send.firefox.com/download/8f262f6eb4177211/#eoM87NtIxRsImhYaUpqZ5w
error video
tierninho commentedon Jul 7, 2020
@arjunkalarikkal Thanks for the notice. I added your comments to a known issue for this here: #9297 (comment)