You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/06/03 15:37:58 UTC

[16/21] git commit: [#6235] ticket:366 Fix tarball_filename for svn

[#6235] ticket:366 Fix tarball_filename for svn


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e4064477
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e4064477
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e4064477

Branch: refs/heads/master
Commit: e4064477183a3b150417aabefffa3fcb53cdd8f8
Parents: 5068fa1
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri May 24 14:45:23 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri May 31 22:14:09 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e4064477/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index 9d0a521..811380a 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -102,9 +102,9 @@ class Repository(M.Repository):
         return self._impl.commit(self.heads[0].object_id)
 
     def tarball_filename(self, revision, path=None):
-        fn =  super(Repository, self).tarball_filename(revision, path)
+        fn = super(Repository, self).tarball_filename(revision, path)
         path = self._impl._path_to_root(path, revision)
-        fn += '-' + '-'.join(path.split('/'))
+        fn += ('-' + '-'.join(path.split('/'))) if path else ''
         return fn