From 51915ddf0e319929653c7fc255f1536f4712928f Mon Sep 17 00:00:00 2001 From: Yu Jianjian Date: Wed, 23 Mar 2016 23:33:20 +0800 Subject: [PATCH] wrong order of the args in docstring of write_archive --- pygit2/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygit2/repository.py b/pygit2/repository.py index e9bbdc6..985694f 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -765,7 +765,7 @@ class Repository(_Repository): >>> import tarfile, pygit2 >>>> with tarfile.open('foo.tar', 'w') as archive: >>>> repo = pygit2.Repsitory('.') - >>>> repo.write_archive(archive, repo.head.target) + >>>> repo.write_archive(repo.head.target, archive) """ # Try to get a tree form whatever we got