lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Branch renaming does not auto-apply dashes when renaming a newly created branch

Open bassepeder opened this issue 3 years ago • 6 comments

Describe the bug When creating a new branch with spaces in the name, lazygit automatically applies dashes for the whitespaces. When renaming a newly creating branch with whitespaces in it, lazygit says that the branch name is not supported.

To Reproduce

  • Create a new branch with whitespaces in its name.
  • Rename the newly created branch with whitespaces in its name.

Expected behavior Lazygit adds dashes where whitespace is present.

Screenshots If applicable, add screenshots to help explain your problem.

Version info: Newest lazygit version

bassepeder avatar Aug 08 '22 13:08 bassepeder

Would you be interested in taking a shot at this?

I take it we just need to replace ' ' with '-' here.

mark2185 avatar Aug 08 '22 13:08 mark2185

Sure, here is a video of the problem:

https://user-images.githubusercontent.com/58905488/184503238-7d039c0a-6063-4208-92b4-62341b50b03e.mp4

bassepeder avatar Aug 13 '22 16:08 bassepeder

Oh, I meant "taking a shot" in the sense of "would you like to try and fix this"?

mark2185 avatar Aug 13 '22 16:08 mark2185

Oh sorry, my bad 😆 Yeah, I can give it a shot tomorrow 👍🏼

bassepeder avatar Aug 13 '22 19:08 bassepeder

Sorry for the inactivity. Kinda forgot about this issue. @mark2185 Is this issue still relevant?

bassepeder avatar Sep 18 '22 13:09 bassepeder

Nobody fixed it in the meantime, as far as I'm aware :)

mark2185 avatar Sep 18 '22 14:09 mark2185

Uhhh... I meant that it is still not fixed, so it should remain open :sweat_smile:

mark2185 avatar Sep 26 '22 18:09 mark2185

Closed by #2990 .

mark2185 avatar Sep 09 '23 08:09 mark2185