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

gitSafeReplacementChar: '-' does interesting things #819

Open
JBruns15 opened this issue Mar 15, 2024 · 3 comments
Open

gitSafeReplacementChar: '-' does interesting things #819

JBruns15 opened this issue Mar 15, 2024 · 3 comments

Comments

@JBruns15
Copy link

JBruns15 commented Mar 15, 2024

When i have a Ticket named:

Please fix - nasty bug

And i replace every Space with -

It would look like:
please-fix---nasty-bug

What can i do about that?

Sorry when it is not an Issue.

Thanks

@robvanderleek
Copy link
Owner

Hi @JBruns15

As I understand you have configured gitSafeReplacementChar: '-' for this repository?
That will indeed create a branch named Please-fix---nasty-bug for an issue titled Please fix - nasty bug.
Is this not what you expected?
Please let me know what you expected, because what you describe is the intended behaviour.

Kind regards, Rob

@JBruns15
Copy link
Author

Hi @robvanderleek ,

i undertand it now. Thanks.
But is there a possibilite to use the gitSafeReplacementChar and avoid triple - ?

Thanks a lot :)

@robvanderleek
Copy link
Owner

I don't think so 🤔
gitSafeReplacementChar replaces all characters that are not allowed in Git branch names, so <space>-<space> becomes --- (or _-_ with the default setting).
I would not know a way that prevents this behaviour, unless it's a very specialized feature to replace --- with - but that looks like a feature only a very limited number of users would use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants