# HG changeset patch # User Marcin Kuzminski # Date 2018-10-03 20:01:55 # Node ID d806d23f91808c82f1504782519e83e521b795c3 # Parent 47d2196aa22e3a5a9c2878208fa4554f904dcf48 git: sync_fetch should fetch HEAD ref diff --git a/vcsserver/git.py b/vcsserver/git.py --- a/vcsserver/git.py +++ b/vcsserver/git.py @@ -473,6 +473,10 @@ class GitRemote(object): if ref.endswith(self.peeled_ref_marker): log.debug("Skipping peeled reference %s", ref) continue + # don't sync HEAD + if ref in ['HEAD']: + continue + remote_refs[ref] = sha if refs and sha in refs: