| Index: build/util/lastchange.py
|
| diff --git a/build/util/lastchange.py b/build/util/lastchange.py
|
| index 8376b543802738a56224da75b3874370851265e2..7c34fbea3b41f50014c36858b12c2613d9cefc50 100755
|
| --- a/build/util/lastchange.py
|
| +++ b/build/util/lastchange.py
|
| @@ -41,7 +41,10 @@ def FetchGitRevision(directory):
|
| cwd=directory)
|
| except OSError:
|
| return None
|
| - return VersionInfo('git', 'git', proc.stdout.read().strip()[:7])
|
| + output = proc.communicate()[0].strip()
|
| + if proc.returncode == 0 and output:
|
| + return VersionInfo('git', 'git', output[:7])
|
| + return None
|
|
|
|
|
| def FetchSVNRevision(directory):
|
|
|