diff --git a/git_watcher.rb b/git_watcher.rb index 6b38e9a..df9463a 100644 --- a/git_watcher.rb +++ b/git_watcher.rb @@ -49,12 +49,12 @@ class GitWatcher Dir.chdir(@path) do # get all commits since the last update # on the given branch - buf = `git log --pretty=oneline #{@last_seen}.. #{@branch}` + buf = `git log --pretty=format:%s #{@last_seen}.. #{@branch}` puts "[#{Time.now.xmlschema}] got '" + buf + "' EOF" end buf.split("\n").reverse_each do |line| - yield Commit.new(@name, line[41..-1]) + yield Commit.new(@name, line) end @last_seen = current