branch: Make git_branch_remote_name() cope with orphaned heads
branch: refactor git_branch_remote_name() tests
Merge pull request #1343 from nulltoken/topic/remote_orphaned_branch

Teach git_branch_remote_name() to work with orphaned heads