# HG changeset patch # User Sean Farley # Date 1431715249 25200 # Node ID 9b7088850ca8b34264c8c1804790c63f64bc65e1 # Parent 31f52d62ae13526fe111f8b871f248dc070bf610 git_handler: use our read_pkt_refs for fetch_pack diff -r 31f52d62ae13 -r 9b7088850ca8 hggit/git_handler.py --- a/hggit/git_handler.py Fri May 15 11:38:59 2015 -0700 +++ b/hggit/git_handler.py Fri May 15 11:40:49 2015 -0700 @@ -1160,6 +1160,10 @@ try: progress = GitProgress(self.ui) f = StringIO.StringIO() + + # monkey patch dulwich's read_pkt_refs so that we can determine on + # clone which bookmark to activate + client.read_pkt_refs = compat.read_pkt_refs ret = localclient.fetch_pack(path, determine_wants, graphwalker, f.write, progress.progress) if(f.pos != 0):