New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop client automatically fast-forwarding current branch #8933
Comments
@jayrhynas Thanks for the issue, and I'm sorry you're experiencing this. Does it seem to manifest in the same way as the reports in #8155, or is there anything different in your case from those reports? Would you mind including a log file ( |
It seems to be the same as #8155. The issue occurred around 11:00-12:30 EST (16:00-17:30 UTC) |
+1 Having this issue as well. |
@liran-co would you be able to upload your log file from GitHub Desktop as well (from the day this issue occurred)? I'd like to take a look to see if there is anything helpful there. @jayrhynas and @liran-co I would also be interested if you are able to reliably reproduce this in a test repository (if you have the time to). I've made attempts to try and trigger this edge case but so far have been unsuccessful. There may be a detail I'm missing in the reproduction steps. |
I haven't been able to reproduce it intentionally but it happens multiple times a week to multiple co-workers. |
Log file below. I think it's safe to ignore all the authentication errors in there (not sure why they are in the logs...I'm authenticated just fine). For me this is happening nearly every time a remote branch is updated. |
In the logs it says:
which usually indicates an issue with SSH -- did you clone this repository in GitHub Desktop, or did you clone it from another client using SSH? You can check the remote URL the repository is using from GitHub Desktop by going to the file menu and selecting There are two solutions:
Hope that helps. Let us know if that doesn't get things working. |
Yea, that did it (had an old repo in there with SSH). In any case, this happened again today around 2020-03-07T15:52. Log file attached. |
@liran-co Please confirm if it is happening with the same repo or another repo. Also, which solution did you use to initially resolve it? Thanks. |
I switched the remote to HTTPS to solve those authentication issues. That wasn't the repo with the issue though. |
Did HTTPS not resolve the issue when it happened again? Thanks in advance for the clarity. |
No, it did not. As a possibility helpful note: I did notice it happens pretty consistently when switching repos in the desktop app. |
@jayrhynas and @liran-co could you share how many branches you have in the repository where you are seeing this issue occur? We think the issue may be related to having 20+ branches in a repository. |
28 branches :/ |
Also ~100 branches for me |
Would the issue be resolved by removing the local branches but keeping the remote ones? That would be a quicker solution for us. |
Describe the bug
The GitHub desktop app seems to be automatically fetching and fast-forwarding the current branch, even if there are local changes. This results in git reporting many "diffs" that would undo the remote changes, since the unchanged working directory doesn't match the branch tip.
This seems to be a regression of #8155.
Version & OS
Version 2.2.4
macOS 10.15.2
Steps to reproduce the behavior
Expected behavior
Changes are fetched in the background but the current branch isn't affected.
Actual behavior
Changes are fetched and the current branch is fast-forwarded (if possible). This results in git reporting many "diffs" that would undo the remote changes, since the unchanged working directory doesn't match the branch tip.
The text was updated successfully, but these errors were encountered: