Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

For svn vcs, sometimes 'URL:" does not match any line of the splitted…

… svn info output.

This can be be due to a trailing space before ':' character or whatever. 
Using "URL" only in re.match(...) seems to solve the issue.
  • Loading branch information...
commit f18cfcd47e20673b513def197696495cbb0225a1 1 parent 99ac03b
@Giorgiolino Giorgiolino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/vcprompt
View
2  bin/vcprompt
@@ -621,7 +621,7 @@ def svn(options):
for line in output.split('\n'):
# branch
if '%b' in options.format:
- if re.match('URL:', line):
+ if re.match('URL', line):
matches = re.search(branch_regex, line)
if matches:
branch = matches.groups(0)[0]
Please sign in to comment.
Something went wrong with that request. Please try again.