only checkout the target branch when topgit is used
fixed string comparison