diff --git a/source_control/git.py b/source_control/git.py index 1230b187477..1df1fc1aa0c 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -522,7 +522,7 @@ def fetch(git_path, module, repo, dest, version, remote, depth, bare, refspec): elif version == 'HEAD': refspecs.append('HEAD') elif is_remote_branch(git_path, module, dest, repo, version): - refspecs.append('+refs/heads/'+version+':refs/heads/'+version) + refspecs.append(version) elif is_remote_tag(git_path, module, dest, repo, version): refspecs.append('+refs/tags/'+version+':refs/tags/'+version) if refspecs: