dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00119
Issues related to fetching
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
Follow ups