2011-09-27 6 views

回答

4

這是不是一個測試的答案,但它是在推動部接近:

# set wants to master 
def wantmaster(haves, wants): 
    global repo 
    return { "refs/heads/master": repo.refs["HEAD"] } 

client, src = dulwich.client.get_transport_and_path(origin_uri) 

client.send_pack(src, wantmaster, repo.object_store.generate_pack_contents) 

在這方面的一個變化是在我的代碼工作。

相關問題