Ver Fonte

Pass index onto stash.pop().

Fixes #876
Jelmer Vernooij há 3 anos atrás
pai
commit
67a6d31b52
1 ficheiros alterados com 2 adições e 2 exclusões
  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):