changeset 5737:3d09266ba8cb

scm: don't fail if create_nodes paths actually need normalization - don't look f_path up with the wrong normalized name
author domruf <dominikruf@gmail.com>
date Mon, 29 Feb 2016 22:36:09 +0100
parents d8b6c876c609
children 95a33e5d0596
files kallithea/model/scm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/scm.py	Wed Feb 24 22:34:33 2016 +0100
+++ b/kallithea/model/scm.py	Mon Feb 29 22:36:09 2016 +0100
@@ -628,8 +628,8 @@
 
         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