From 56df21ed4cf5230924b5b6bd69b138da904758d0 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Wed, 3 May 2006 20:34:18 +0100 Subject: [PATCH] Fix the added to both but different conflict By default, the index was left with two unmerged entries. StGIT tries to leave the index clean after conflicts. Signed-off-by: Catalin Marinas --- stgit/gitmergeonefile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stgit/gitmergeonefile.py b/stgit/gitmergeonefile.py index c603ff8..c3aaa2a 100644 --- a/stgit/gitmergeonefile.py +++ b/stgit/gitmergeonefile.py @@ -205,6 +205,8 @@ def merge(orig_hash, file1_hash, file2_hash, return 1 # files are different else: + # reset the index to the current file + os.system('git-update-index -- %s' % path) print >> sys.stderr, \ 'Error: File "%s" added in branches but different' % path __conflict(path) -- 2.11.0