aboutsummaryrefslogtreecommitdiffstats
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/file2lastrev.rb')
-rw-r--r--tool/file2lastrev.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 73cc9997a9..01ac1bbced 100644
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -24,12 +24,12 @@ def get_revisions(path)
`cd "#{SRCDIR}" && git svn info "#{path}"`
end
- if info =~ /^Revision: (\d+)$/
+ if /^Revision: (\d+)/ =~ info
last = $1
else
raise "last revision not found"
end
- if info =~ /^Last Changed Rev: (\d+)$/
+ if /^Last Changed Rev: (\d+)/ =~ info
changed = $1
else
raise "changed revision not found"