Fix failure when repository is not git
baerrach opened this issue · 2 comments
baerrach commented
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.
alexec commented
Good point. Would you like to raise a PR to fix it?
github-actions commented
Stale issue message