question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to escape "/" in git branch

See original GitHub issue

I’m using

  • 1.3.3.RELEASE - spring-boot-starter-parent
  • 1.1.0.M2 - spring-cloud-config-server-1.1.0.M2-exec

Based on documentation http://projects.spring.io/spring-cloud/spring-cloud.html

If the git branch or tag name contains a slash (“/”) then the label in the HTTP URL should be specified with the special string “(_)” instead (to avoid ambiguity with other URL paths). Be careful with the brackets in the URL if you are using a command line client like curl (e.g. escape them from the shell with quotes ‘’).

Does that mean if my git branch is feature/JIRA-33

I need to start the service with?

--spring.cloud.config.label="\"(feature/JIRA-33)\""

I get the following warning:

WARN 24960 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: {"timestamp":1487944786369,"status":500,"error":"Internal Server Error","exception":"org.springframework.cloud.config.server.environment.NoSuchLabelException","message":"No such label: \"(feature","path":"/inventory-delete-service/%22(feature/JIRA-22)%22"}

any idea’s?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
emoshayacommented, Feb 24, 2017

providing an example in the documentation would be fantastic

1reaction
spencergibbcommented, Feb 24, 2017

You should litteraly replace / with (_). So feature(_)JIRA-33.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git branch command (END) on mac terminal
Tested on mine and the command works. enter this command to make it work as requested: good luck! git config --global pager.branch false....
Read more >
How to exit long output from a git command (like git branch
Pressing “arrow down” will scroll one row. Pressing “page down” will scroll a screen. When you reach the end of the output, the...
Read more >
Dealing with special characters in branch and tag names
When using Git from a command-line shell, you may need to escape or quote special characters. About branch and tag names. Most repositories...
Read more >
Git Cheat Sheet. - Post/Code
git branch. git status. git fetch. git pull. git add . git commit -m "Type message here". git log -3. git remote -v....
Read more >
15 Git Hacks to Save your Life as a Developer - Medium
There one thing that frustrates many beginners about using git log or git diff they can't figure out a way to exit commit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found