Break out appFromGitRemote().
-a specifies an appish.

Could be a git remote or explicit app name.