Skip to content

Commit

Permalink
ruby 1.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed Sep 2, 2011
1 parent 67e2e72 commit 581f312
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/git_commit_notifier/git.rb
Expand Up @@ -17,6 +17,7 @@ def log(rev1, rev2)
def changed_files(rev1, rev2)
output = ""
lines = from_shell("git log #{rev1}..#{rev2} --name-status --oneline")
lines = lines.lines if lines.respond_to?(:lines)
lines = lines.select {|line| line =~ /^\w{1}\s+\w+/} # grep out only filenames
lines.uniq
end
Expand Down

0 comments on commit 581f312

Please sign in to comment.