From e1db88d02ed4fbb0cb38c90ce6f9cd7416747d69 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 2 Nov 2005 16:55:35 -0500 Subject: [PATCH] remove extra refresh_index() call in apply_patches() apply_patches() calles git.merge() and git.switch(), both of which already invoke refresh_index(). Signed-off-by: Chuck Lever --- stgit/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stgit/git.py b/stgit/git.py index a615ccf..0cdc125 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -638,11 +638,11 @@ def apply_patch(filename = None, base = None): return False return True - refresh_index() - if base: orig_head = get_head() switch(base) + else: + refresh_index() # needed since __apply_patch() doesn't do it if not __apply_patch(): if base: -- 2.11.0