I currently have the starter license so I am not allowed to submit this to support and I am not allowed to post this issue to the Bamboo JIRA project either so I am posting it here.
As we know, the default JGit is buggy, so it is better to use a native git install by adding an appropriate capability. However, if you enable a native git capability where your system has the following conditions, you will get an NPE:
- The `SSH_ASKPASS` environment variable is not set
- `/usr/echo` and `/usr/bin/echo` do not exist
It is not a safe assumption that if you are not in a windows environment that `/usr/echo` or `/usr/bin/echo` exists. For example I am using a nixos install, and `echo` in my environment exists at `/run/current-system/sw/bin/echo`.
My workaround is to set `SSH_ASKPASS` to `/run/current-system/sw/bin/echo`.