Changeset - 3d09266ba8cb
[Not reviewed]
default
0 1 0
domruf - 10 years ago 2016-02-29 22:36:09
dominikruf@gmail.com
scm: don't fail if create_nodes paths actually need normalization - don't look f_path up with the wrong normalized name
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/model/scm.py
Show inline comments
 
@@ -625,14 +625,14 @@ class ScmModel(BaseModel):
 

	
 
        user = self._get_user(user)
 
        scm_instance = repo.scm_instance_no_cache()
 

	
 
        processed_nodes = []
 
        for f_path in nodes:
 
            content = nodes[f_path]['content']
 
            f_path = self._sanitize_path(f_path)
 
            content = nodes[f_path]['content']
 
            f_path = safe_str(f_path)
 
            # decoding here will force that we have proper encoded values
 
            # in any other case this will throw exceptions and deny commit
 
            if isinstance(content, (basestring,)):
 
                content = safe_str(content)
 
            elif isinstance(content, (file, cStringIO.OutputType,)):
0 comments (0 inline, 0 general)