incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [16/21] git commit: [#6235] ticket:366 Fix tarball_filename for svn
Date Mon, 03 Jun 2013 13:37:58 GMT
[#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 <jetmind2@gmail.com>
Authored: Fri May 24 14:45:23 2013 +0000
Committer: Dave Brondsema <dbrondsema@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
 
 


Mime
View raw message