소스 검색

Pass index onto stash.pop().

Fixes #876
Jelmer Vernooij 4 년 전
부모
커밋
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):