Fix inifinite 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>
Sun, 5 Jun 2011 21:18:22 +0000 (23:18 +0200)
commitbf97ae4d6b748dee333eff92d25dbf695c676076
tree10e2b397e4e9e89e2f388b2b3f76a37100aa697b
parent66cb1d5326cc208250ed0eee22f764864ebe6e2e
Fix inifinite loop bug in blame.

Previously blame would get stuck in an infinite loop if it was trying
to explain a totally empty file. Conceivably this a bug in git as file
content should begin with at 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