浏览代码

Pass index onto stash.pop().

Fixes #876
Jelmer Vernooij 3 年之前
父节点
当前提交
67a6d31b52
共有 1 个文件被更改,包括 2 次插入2 次删除
  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):