Browse Source

Pass index onto stash.pop().

Fixes #876
Jelmer Vernooij 3 năm trước cách đây
mục cha
commit
67a6d31b52
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      dulwich/porcelain.py

+ 2 - 2
dulwich/porcelain.py

@@ -1808,13 +1808,13 @@ def stash_push(repo):
         stash.push()
 
 
-def stash_pop(repo):
+def stash_pop(repo, index):
     """Pop a new stash from the stack."""
     with open_repo_closing(repo) as r:
         from dulwich.stash import Stash
 
         stash = Stash.from_repo(r)
-        stash.pop()
+        stash.pop(index)
 
 
 def ls_files(repo):