-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Button to commit should reflect name of the current branch #10318
Comments
@Lmpessoa thanks for the report. The branch name in the commit button should update when you change branches, so this looks like a bug. Are you able to reproduce this in multiple repositories? Are you running Windows or macOS? I was unable to reproduce this issue on my machine. |
I tried reproducing and found this out: By switching to the branch inside the app the button updated correctly, but when I created the branch from the command line and just then opening the app it recognised correctly the current branch but did not change the button label. The app was closed when the branch was created and showed up like the screenshot when open. Sorry, OS is Windows 10 |
I was able to reproduce this when the branch in question was unborn (i.e had no commits yet). Steps to reproduce
This seems to be because we (rather sloppily) fall back to https://github.com/desktop/desktop/blob/development/app/src/ui/changes/commit-message.tsx#L482 Gonna open a PR to address this |
I guess this is it. Since the branch I was on was an orphaned one, might fall on the same spot. |
My laptop todhiba 7 udgrade to windows 10 but is too much slow |
Describe the feature or problem you’d like to solve
While the app correctly displays the name of the current branch on top of the screen, the button to commit says "Commit to master" (bold is not mine but the app's doing). That pulled me from using the app to commit since I had the impression the commit is going to be made to the master branch instead of the current branch (used the command line for this commit).
Proposed solution
Change the commit button label to "Commit to %branch" where %branch is the name of the currently active branch.
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
The text was updated successfully, but these errors were encountered: