Skip to content

Commit 581f312

Browse files
committed
ruby 1.9 compatibility
1 parent 67e2e72 commit 581f312

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/git_commit_notifier/git.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def log(rev1, rev2)
1717
def changed_files(rev1, rev2)
1818
output = ""
1919
lines = from_shell("git log #{rev1}..#{rev2} --name-status --oneline")
20+
lines = lines.lines if lines.respond_to?(:lines)
2021
lines = lines.select {|line| line =~ /^\w{1}\s+\w+/} # grep out only filenames
2122
lines.uniq
2223
end

0 commit comments

Comments
 (0)