Index: build/util/lastchange.py |
diff --git a/build/util/lastchange.py b/build/util/lastchange.py |
index d1c33e8eb01170face4ed8e8c5814285106e9beb..1a7f5199d2e5614a0dca90c051c750c52a6e1838 100755 |
--- a/build/util/lastchange.py |
+++ b/build/util/lastchange.py |
@@ -115,6 +115,7 @@ def FetchGitRevision(directory): |
for line in reversed(output.splitlines()): |
if line.startswith('Cr-Commit-Position:'): |
pos = line.rsplit()[-1].strip() |
+ break |
if not pos: |
return VersionInfo('git', hsh) |
return VersionInfo('git', '%s-%s' % (hsh, pos)) |