Permalink
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...
1 parent 99ac03b commit f18cfcd47e20673b513def197696495cbb0225a1 @Giorgiolino Giorgiolino committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/vcprompt
View
@@ -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]

0 comments on commit f18cfcd

Please sign in to comment.