Changeset - 142a05597cba
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-10-07 16:33:01
marcin@python-works.com
assure that we don't have an empty description when creating a repo
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)