[#5978] Fixed guess_repo being called for rendering SCM trees

Signed-off-by: Cory Johns <johnsca@geek.net>
[#5978] Fixed call to guess_repo in History view and log any other calls as errors

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>