dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00120
Re: Issues related to fetching
Which line raises the error? You can just paste the full stack trace.
On Fri, Jul 2, 2010 at 10:44, Sean McDonald <smcdon@xxxxxxx> wrote:
> 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 : dulwich-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dulwich-users
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References