Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

Commit

Permalink
Revert "I have no idea what I am doing"
Browse files Browse the repository at this point in the history
Broken thing is broken

This reverts commit 6b42a43.
  • Loading branch information
paradoxxxzero committed Feb 4, 2016
1 parent 6b42a43 commit d44f3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynuts/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _lookup(self, path, create_trees=False):
_mode, sha = tree[name]
obj = self._get_object(sha)
# All but the last part must be trees
if i < last_i and obj.type_name != b'tree':
if i < last_i and obj.type_name != 'tree':
path = b'/'.join(name for _, name, _ in steps)
raise ObjectTypeError("'%s' is a %s, expected a tree."
% (path, obj.type_name))
Expand All @@ -152,7 +152,7 @@ def read(self, path):
"""
_, blob = self._lookup(path)
if blob.type_name != b'blob':
if blob.type_name != 'blob':
raise ObjectTypeError("'%s' is a %s, expected a blob."
% (path, blob.type_name))
return blob.data
Expand All @@ -168,7 +168,7 @@ def write(self, path, bytestring):
"""
steps, _ = self._lookup(path, create_trees=True)
tree, name, obj = steps.pop()
if obj and obj.type_name != b'blob':
if obj and obj.type_name != 'blob':
raise ObjectTypeError('Will not overwrite a %s at %s'
% (obj.type_name, path))

Expand Down

0 comments on commit d44f3a2

Please sign in to comment.