summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-14 16:23:17 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-14 16:23:17 +0100
commitaa1b156ee96f5aabdca153c152ec6e3215fdf16f (patch)
treef3f3b3ee76a4da55f4ae1216a8219e571a161b6b /git/test/test_repo.py
parent619c989915b568e4737951fafcbae14cd06d6ea6 (diff)
downloadgitpython-aa1b156ee96f5aabdca153c152ec6e3215fdf16f.tar.gz
Added 'path' keyword argument to Repo.archive().
This allows sub-trees to be archived as well, and makes `.archive()` feature complete. Fixes #67
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r--git/test/test_repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index a782cefa..226c1d26 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -266,7 +266,7 @@ class TestRepo(TestBase):
def test_archive(self):
tmpfile = tempfile.mktemp(suffix='archive-test')
stream = open(tmpfile, 'wb')
- self.rorepo.archive(stream, '0.1.5')
+ self.rorepo.archive(stream, '0.1.6', path='doc')
assert stream.tell()
stream.close()
os.remove(tmpfile)