Skip to content

Commit 6be6ab0

Browse files
author
pivotal
committed
Handle non-UTF8 characters in git diffs.
1 parent bbf4444 commit 6be6ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/diff.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def blob(type = :dst)
9797

9898
def cache_full
9999
unless @full_diff
100-
@full_diff = @base.lib.diff_full(@from, @to, {:path_limiter => @path})
100+
@full_diff = @base.lib.diff_full(@from, @to, {:path_limiter => @path}).unpack('C*').pack('U*')
101101
end
102102
end
103103

0 commit comments

Comments
 (0)