aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcs_git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcs_git.rb b/vcs_git.rb
index 5668ba3..4a51dfd 100644
--- a/vcs_git.rb
+++ b/vcs_git.rb
@@ -45,7 +45,7 @@ class VCS
end
def VCS.cat revision, file
- revs = runcmd(GITCMD, "log", "--format=format:%H").scan(/^(.*)$/).flatten.reverse
+ revs = runcmd(GITCMD, "log", "--format=format:%H").split("\n").reverse
runcmd(GITCMD, "show", "#{revs[revision-1]}:#{file}")
end