| Index: build/util/lastchange.py
|
| diff --git a/build/util/lastchange.py b/build/util/lastchange.py
|
| index 4e5311b11dbbb2930002a5897675e0a7bec96708..872564065c64560f5483c5a00e5124fc159654d3 100755
|
| --- a/build/util/lastchange.py
|
| +++ b/build/util/lastchange.py
|
| @@ -129,14 +129,15 @@ def FetchGitSVNURL(directory):
|
| Returns:
|
| SVN URL.
|
| """
|
| - if not IsGitSVN(directory):
|
| - return None
|
| - proc = RunGitCommand(directory, ['svn', 'info', '--url'])
|
| - if proc:
|
| - output = proc.communicate()[0].strip()
|
| - if proc.returncode == 0:
|
| - return output
|
| - return None
|
| + if IsGitSVN(directory):
|
| + proc = RunGitCommand(directory, ['svn', 'info', '--url'])
|
| + if proc:
|
| + output = proc.communicate()[0].strip()
|
| + if proc.returncode == 0:
|
| + match = re.search(r'^\w+://.*$', output, re.M)
|
| + if match:
|
| + return match.group(0)
|
| + return ''
|
|
|
|
|
| def LookupGitSVNRevision(directory, depth):
|
|
|