Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return object sha and mode rather than object itself in tree_lookup_p…

…ath.
  • Loading branch information...
commit b3edb707975f06f0a4a6ea8d1d30250fe01d7914 1 parent f4e4efc
Abderrahim Kitouni abderrahim authored jelmer committed
Showing with 6 additions and 1 deletion.
  1. +5 −0 NEWS
  2. +1 −1  dulwich/object_store.py
5 NEWS
View
@@ -1,5 +1,10 @@
0.3.4 UNRELEASED
+ API CHANGES
+
+ * dulwich.object_store.tree_lookup_path will now return the mode and
+ sha of the object found rather than the object itself.
+
BUG FIXES
* Use binascii.hexlify / binascii.unhexlify for better performance.
2  dulwich/object_store.py
View
@@ -480,7 +480,7 @@ def tree_lookup_path(lookup_obj, root_sha, path):
if p == '':
continue
mode, sha = obj[p]
- return lookup_obj(sha)
+ return mode, sha
class MissingObjectFinder(object):
Please sign in to comment.
Something went wrong with that request. Please try again.