瀏覽代碼

stash: fix __getitem__

Peter Rowlands 4 年之前
父節點
當前提交
42b1f160ea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/stash.py

+ 1 - 1
dulwich/stash.py

@@ -111,7 +111,7 @@ class Stash(object):
         return cid
 
     def __getitem__(self, index):
-        return self._stashes()[index]
+        return list(self.stashes())[index]
 
     def __len__(self):
         return len(self._stashes())