intuit/maven-build-scanner

Fix failure when repository is not git

baerrach opened this issue · 2 comments

getBranch assumes the Maven project is in a git repository.

So when it fails to file ".git/HEAD" it will fail with NullPointerExecption when basedir.getParentFile() reaches the root.

Good point. Would you like to raise a PR to fix it?

Stale issue message