Don't add local branch refspec if remote branch is empty. Integration tests needed.