Hi everyone,

I've been reading through the archives to figure out how to fetch from a
remote repository. I followed some of the examples I found and got an error:
"ValueError: too many values to unpack." How do I resolve this?

Here's my sample script:

#####

import dulwich.client
from dulwich.repo import Repo
import os

client, path = dulwich.client.get_transport_and_path("path to github repo")

src = "path to github repo"
target = "local directory"

os.mkdir(target)
r = Repo.init(target)

remote_refs = client.fetch(src, r)
r["HEAD"] = remote_refs["HEAD"]

#####


Thanks,

Sean
_______________________________________________
Mailing list: https://launchpad.net/~dulwich-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dulwich-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to