From 9a08e558f6493cb2e4b664dab797270300c80caa Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Thu, 19 Jan 2012 13:27:20 +0000 Subject: Break long lines in git.py. --- morphlib/git.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'morphlib/git.py') diff --git a/morphlib/git.py b/morphlib/git.py index 8260312f..7654e3bd 100644 --- a/morphlib/git.py +++ b/morphlib/git.py @@ -70,6 +70,7 @@ class Treeish: try: binascii.unhexlify(ref) ex = morphlib.execute.Execute(self.repo, self.msg) + # TODO why is refs unused here? can we remove it? refs = ex.runv(['git', 'rev-list', '--no-walk', ref]) self.sha1=ref except (TypeError, morphlib.execute.CommandFailure): @@ -78,12 +79,14 @@ class Treeish: def export_sources(treeish, tar_filename): '''Export the contents of a specific commit into a compressed tarball.''' ex = morphlib.execute.Execute('.', msg=logging.debug) - ex.runv(['git', 'archive', '-o', tar_filename, '--remote', treeish.repo, treeish.sha1]) + ex.runv(['git', 'archive', '-o', tar_filename, '--remote', treeish.repo, + treeish.sha1]) def get_morph_text(treeish, filename): '''Return a morphology from a git repository.''' ex = morphlib.execute.Execute(treeish.repo, msg=logging.debug) - return ex.runv(['git', 'cat-file', 'blob', '%s:%s' % (treeish.sha1, filename)]) + return ex.runv(['git', 'cat-file', 'blob', '%s:%s' + % (treeish.sha1, filename)]) def extract_bundle(location, bundle): '''Extract a bundle into git at location''' -- cgit v1.2.1