# HG changeset patch # User Marcin Kuzminski # Date 2011-10-07 14:33:01 # Node ID 142a05597cba7f28309f91d97ba1f6652f5e42f3 # Parent 582686d76cb610c550fc51a80d9642a455115ced assure that we don't have an empty description when creating a repo diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -192,6 +192,9 @@ class RepoModel(BaseModel): if k == 'repo_group': k = 'group_id' + if k == 'description': + v = v or repo_name + setattr(new_repo, k, v) if fork: @@ -302,7 +305,7 @@ class RepoModel(BaseModel): :param clone_uri: """ from rhodecode.lib.utils import is_valid_repo - + if new_parent_id: paths = Group.get(new_parent_id).full_path.split(Group.url_sep()) new_parent_path = os.sep.join(paths)