Skip to content

Commit

Permalink
Pass in known sha.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Nov 26, 2013
1 parent ee89c0b commit 2cae261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dulwich/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ def get_raw(self, sha1):
def __getitem__(self, sha1):
"""Retrieve the specified SHA1."""
type, uncomp = self.get_raw(sha1)
return ShaFile.from_raw_string(type, uncomp)
return ShaFile.from_raw_string(type, uncomp, sha=sha1)

def iterobjects(self):
"""Iterate over the objects in this pack."""
Expand Down

0 comments on commit 2cae261

Please sign in to comment.