# HG changeset patch # User domruf # Date 2016-02-29 22:36:09 # Node ID 3d09266ba8cb3ec59ecbefd81d1eae4fb373d278 # Parent d8b6c876c609d2c2a16d935de760621c753aae35 scm: don't fail if create_nodes paths actually need normalization - don't look f_path up with the wrong normalized name diff --git a/kallithea/model/scm.py b/kallithea/model/scm.py --- a/kallithea/model/scm.py +++ b/kallithea/model/scm.py @@ -628,8 +628,8 @@ class ScmModel(BaseModel): 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