otac0n / WebGitNet

WebGit .NET is an ASP.NET MVC app that provides access to your git repositories over HTTP. It supports browsing in a web browser AND push / pull over Git's "Smart HTTP protocol".
zlib License
132 stars 62 forks source link

View Commit throws an error 'Index was outside the bounds of the array. ' #40

Closed otac0n closed 11 years ago

otac0n commented 12 years ago
[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.String.get_Chars(Int32 index) +0
   ASP._Page_Views_Browse_ViewCommit_cshtml.Execute() in c:\Users\otac0n\Projects\WebGitNet\WebGitNet\Views\Browse\ViewCommit.cshtml:43

This is due to the diff command somehow emitting a blank line, rather than a line starting with a single space.

otac0n commented 11 years ago

This bug made obsolete by 4a7ffd6dd5d22d280a189ab9772ac1f6d4dc2931

I'll close this issue when it gets merged into default.