lib/gitmine.rb in gitmine-0.1.8 vs lib/gitmine.rb in gitmine-0.1.9
- old
+ new
@@ -8,10 +8,10 @@
def self.list
gm = Gitmine.new
gm.commits.each do |commit|
status = commit.issue ? commit.issue.status : 'N/A'
- puts "#{commit.id[0..6]} #{status.ljust(12)} #{commit.committer.name.ljust(15)} #{commit.message[0..50].gsub("\n", '')}"
+ puts "#{commit.id[0..6]} #{status.ljust(12)} #{(commit.committer.name || "").ljust(15)} #{commit.message[0..50].gsub("\n", '')}"
end
end
def initialize
@repo = Grit::Repo.new(ENV['PWD'])