2
0
Jelmer Vernooij 4 жил өмнө
parent
commit
e6fc635407

+ 2 - 1
dulwich/index.py

@@ -568,7 +568,8 @@ def build_index_from_tree(root_path, index_path, object_store, tree_id,
                     # Our filename isn't supported by the platform :(
                     import warnings
                     warnings.warn(
-                        'Unable to write ile %s: %s', full_path, e.strerror)
+                        'Unable to write file %s: %s' %
+                        (full_path, e.strerror))
                     continue
                 else:
                     raise

+ 1 - 1
dulwich/porcelain.py

@@ -207,7 +207,7 @@ def path_to_tree_path(repopath, path):
         repopath = os.fsencode(repopath)
     treepath = os.path.relpath(path, repopath)
     if treepath.startswith(b'..'):
-        raise ValueError('Path not in repo')
+        raise ValueError('Path %r not in repo path (%r)' % (path, repopath))
     if os.path.sep != '/':
         treepath = treepath.replace(os.path.sep.encode('ascii'), b'/')
     return treepath