Added handler for missing branch name
Added check for sha literal in URL