On 11 Mar 2010, at 16:51, Matthew Richardson wrote:
> I can't find a
> way of extracting this pack file to make the repository 'useable', and
> I'm not sure how to update the refs for the target repository once this
> has been done (something with repo.refs ?)
There's no need to extract the pack; Git and Dulwich can read objects straight
from a pack file.
You still need to create refs in the local repository; this can be done by
setting an entry in git.refs:
git.refs['refs/heads/master'] = commit_id
Where commit_id is the (hex?) id of the remote master. This updates the branch
ref directly on disk.
There might be a way to do all of this automatically; hopefully somebody more
knowledgeable than me will chime in :)
Cheers,
-- Alex
_______________________________________________
Mailing list: https://launchpad.net/~dulwich-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dulwich-users
More help : https://help.launchpad.net/ListHelp