How to escape "/" in git branch
See original GitHub issueI’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:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
providing an example in the documentation would be fantastic
You should litteraly replace
/
with(_)
. Sofeature(_)JIRA-33
.