summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 12:24:36 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 12:24:36 +0200
commitf62c9b9c0c9bda792c3fa531b18190e97eb53509 (patch)
tree3e2759b8ba2de500a3c75b189cd49a7820c65753 /lib/git/repo.py
parent33fa178eeb7bf519f5fff118ebc8e27e76098363 (diff)
downloadgitpython-f62c9b9c0c9bda792c3fa531b18190e97eb53509.tar.gz
Git.cmd: removed with_raw_output option
repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 956a3341..b6624d8b 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -641,32 +641,23 @@ class Repo(object):
Examples::
- >>> repo.archive(open("archive"
+ >>> repo.archive(open("archive"))
<String containing tar.gz archive>
- >>> repo.archive_tar_gz('a87ff14')
- <String containing tar.gz archive for commit a87ff14>
-
- >>> repo.archive_tar_gz('master', 'myproject/')
- <String containing tar.gz archive and prefixed with 'myproject/'>
-
Raise
GitCommandError in case something went wrong
+ Returns
+ self
"""
if treeish is None:
treeish = self.active_branch
if prefix and 'prefix' not in kwargs:
kwargs['prefix'] = prefix
- kwargs['as_process'] = True
kwargs['output_stream'] = ostream
- proc = self.git.archive(treeish, **kwargs)
- status = proc.wait()
- if status != 0:
- raise GitCommandError( "git-archive", status, proc.stderr.read() )
-
-
+ self.git.archive(treeish, **kwargs)
+ return self
def __repr__(self):
return '<git.Repo "%s">' % self.path