summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-16 13:47:22 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-16 13:47:22 +0100
commit3cc9a2911cc701a9c3a94c27599eee4c5c862af8 (patch)
tree8ebbe49f2f8f103f3c78b0de7ef1abd1178c1b7e /seivot
parent637cf89e349955ddc7fec7415f34a2037beb5dfa (diff)
downloadseivot-3cc9a2911cc701a9c3a94c27599eee4c5c862af8.tar.gz
Use sftp URL if requested.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot7
1 files changed, 6 insertions, 1 deletions
diff --git a/seivot b/seivot
index d01ed49..e31a938 100755
--- a/seivot
+++ b/seivot
@@ -333,8 +333,13 @@ class Seivot(cliapp.Application):
self.live_data = os.path.join(self.tempdir, 'data')
self.repo = os.path.join(self.tempdir, 'repo')
+ if self.settings['use-sftp']:
+ repo_url = 'sftp://localhost%s' % self.repo
+ else:
+ repo_url = self.repo
+
prog = self.factory.new(progname, live_data=self.live_data,
- repo=self.repo,
+ repo=repo_url,
settings=self.settings)
prog.prepare()