Fix Commit#to_diff
This commit is contained in:
parent
056fa05b86
commit
5d1044c335
|
@ -159,6 +159,8 @@ class Commit
|
|||
while !lines.first.start_with?("diff --git") do
|
||||
lines.shift
|
||||
end
|
||||
lines.pop if lines.last =~ /^[\d.]+$/ # Git version
|
||||
lines.pop if lines.last == "-- " # end of diff
|
||||
lines.join("\n")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue