* Add porcelain 'pull'. (Ryan Faulkner)
+ BUG FIXES
+
+ * Support unseekable 'wsgi.input' streams.
+ (Jonas Haag)
+
+ * Raise TypeError when passing unicode() object
+ to Repo.__getitem__.
+ (Jonas Haag)
+
0.9.5 2014-02-23
IMPROVEMENTS
:return: A `ShaFile` object, such as a Commit or Blob
:raise KeyError: when the specified ref or object does not exist
"""
- if not isinstance(name, str):
- raise TypeError("'name' must be bytestring, not %.80s" % type(name).__name__)
+ if type(name) != str:
+ raise TypeError("'name' must be bytestring, not %.80s" %
+ type(name).__name__)
if len(name) in (20, 40):
try:
return self.object_store[name]
self.assertEqual('a90fa2d900a17e99b433217e988c4eb4a2e9a097',
r["refs/tags/foo"].id)
- def test_getitem_notfound_unicode(self):
+ def test_getitem_unicode(self):
r = self._repo = open_repo('a.git')
test_keys = [