Handle buildpack not in a git repository

When the buildpack is not in a git repository, issue an appropriate
debug log message and prevent 'fatal' standard error messages from
appearing.

Improve test coverage of Buildpack class.

[#55742000]
Merge 55742000- to master

[Completes #55742000]