diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-19 13:27:20 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-19 13:27:20 +0000 |
commit | 9a08e558f6493cb2e4b664dab797270300c80caa (patch) | |
tree | e27adfa26c98f9e575976a7ce2c35cdc83b5eea9 /morphlib/git.py | |
parent | 1132cfbcec0645fff7c4fa1883e0ff806311ec17 (diff) | |
download | morph-9a08e558f6493cb2e4b664dab797270300c80caa.tar.gz |
Break long lines in git.py.
Diffstat (limited to 'morphlib/git.py')
-rw-r--r-- | morphlib/git.py | 7 |
1 files changed, 5 insertions, 2 deletions
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''' |