Fix for infinite loop bug in blame.
authorDan Brook <broq@cpan.org>
Sun, 5 Jun 2011 21:18:22 +0000 (23:18 +0200)
committerDan Brook <broq@cpan.org>
Mon, 6 Jun 2011 11:17:02 +0000 (13:17 +0200)
commit09717a40ef5a5d43158701e91ead9ac7934880db
treec53cbe1e204eb03dcb7205972cc25d227347e0c9
parent66cb1d5326cc208250ed0eee22f764864ebe6e2e
Fix for infinite loop bug in blame.

Previously blame would get stuck in an infinite loop when processing
an empty file. Conceivably this a bug in git-blame as file content should
begin with a tab, even if it's empty.

Also adding a commit to repo1 involves fiddling lots tests so I won't
be doing that again.

Thanks to autarch for flagging this up in the first place!
lib/Gitalist/Git/Object/Commit.pm
t/02git_CollectionOfRepositories_FromDirectory.t
t/02git_Repository.t
t/02git_object.t
t/json_view.t
t/lib/repositories/repo1/objects/d6/ddf8b26be63066e01d96a0922c87cd8d6e2270 [new file with mode: 0644]
t/lib/repositories/repo1/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 [new file with mode: 0644]
t/lib/repositories/repo1/objects/f6/fc60f3f43501e81ff865b425b3c6c5a4142dd2 [new file with mode: 0644]
t/lib/repositories/repo1/refs/heads/master
t/lib/repositories/working/README [deleted file]