##// END OF EJS Templates
assure that we don't have an empty description when creating a repo
marcink -
r1517:142a0559 beta
parent child Browse files
Show More
@@ -192,6 +192,9 b' class RepoModel(BaseModel):'
192 if k == 'repo_group':
192 if k == 'repo_group':
193 k = 'group_id'
193 k = 'group_id'
194
194
195 if k == 'description':
196 v = v or repo_name
197
195 setattr(new_repo, k, v)
198 setattr(new_repo, k, v)
196
199
197 if fork:
200 if fork:
@@ -302,7 +305,7 b' class RepoModel(BaseModel):'
302 :param clone_uri:
305 :param clone_uri:
303 """
306 """
304 from rhodecode.lib.utils import is_valid_repo
307 from rhodecode.lib.utils import is_valid_repo
305
308
306 if new_parent_id:
309 if new_parent_id:
307 paths = Group.get(new_parent_id).full_path.split(Group.url_sep())
310 paths = Group.get(new_parent_id).full_path.split(Group.url_sep())
308 new_parent_path = os.sep.join(paths)
311 new_parent_path = os.sep.join(paths)
General Comments 0
You need to be logged in to leave comments. Login now