Skip to content
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

Copy SHA via Ctrl+C broken in 3.0 RC1 #5735

Closed
drewnoakes opened this issue Nov 9, 2018 · 3 comments · Fixed by #5736
Closed

Copy SHA via Ctrl+C broken in 3.0 RC1 #5735

drewnoakes opened this issue Nov 9, 2018 · 3 comments · Fixed by #5736
Assignees
Labels
type: bug 🐛 type: regression regression, normally to latest official release
Milestone

Comments

@drewnoakes
Copy link
Member

Do you want to request a feature or report a bug?

Bug.

What is the current behavior?

Ctrl+C copies junk, or (worse) the SHA of a wrong commit!

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Start GE fresh.
  2. Select a commit.
  3. Press Ctrl+C
  4. The clipboard is filled with something like:
  | Hide submodule toolbar button when not needed |   | Drew Noakes | 2 days ago |   | -- | -- | -- | -- | -- | -- | --
  1. Right click the commit and open the "Copy" submenu (don't click any menu items)
  2. Click away then select a different commit
  3. Ctrl+C
  4. Clipboard will contain the SHA-1 of the wrong commit

Specifically, Ctrl+C copies the SHA-1 of the commit for which the context menu's copy submenu was last opened.

What is the expected behavior?

Ctrl+C always copies the SHA-1 of the selected commit.

Environment you encounter the issue:

  • Git Extensions 3.00.00.02-rc1
  • 7990325 (Dirty)
  • Git 2.19.1.windows.1
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3190.0

Did this work in previous version of GitExtensions (which)?

Yes.

@drewnoakes drewnoakes added type: bug 🐛 type: regression regression, normally to latest official release ❕ priority: high labels Nov 9, 2018
@drewnoakes drewnoakes added this to the 3.00 milestone Nov 9, 2018
@drewnoakes
Copy link
Member Author

I see this as a blocker for 3.0, given the dangerous behaviour of copying wrong data.

@spdr870
Copy link
Member

spdr870 commented Nov 9, 2018

This is some serious strange behavior.

@spdr870
Copy link
Member

spdr870 commented Nov 9, 2018

Did a quick fix. Not the best, but I have no time to look into in further. Was curious about what could cause such weird behaviour. Seems that when opening the contextmenu, a new ctrl-c howkey was registered, overwriting the existing one. I deleted that hotkey in the PR. Maybe someone has a better suggesting. What is the point for adding such a hotkey, after someone opened the contextmenu with the mouse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 type: regression regression, normally to latest official release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants