dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00718
fetching a remote branch??
Hello,
I am using the latest release of dulwich and am fetching a git repo
from github.
I can fetch the repo and access master, view the commit log, etc. However I
need to switch branches but for the life of me can't figure out how :(
I did try:
repo.refs.set_symbolic_ref(branch_name, repo_name) but that throws a
RefFormatError for the branch name.
I also tried repo.refs.get_packed_refs() and it returns an empty list, so I
think I need to perform a fetch_pack()??
Any help on switching branches is appreciated.
Thanks
Michael
Follow ups