Fix merge conflict detection for cherry-pick conflict.

This commit is contained in:
Anthony Sottile
2014-06-13 06:50:17 -07:00
parent 5a1accd697
commit c4e4c2dccb
2 changed files with 13 additions and 3 deletions

View File

@@ -23,7 +23,10 @@ def get_root():
def is_in_merge_conflict():
return os.path.exists(os.path.join('.git', 'MERGE_MSG'))
return (
os.path.exists(os.path.join('.git', 'MERGE_MSG')) and
os.path.exists(os.path.join('.git', 'MERGE_HEAD'))
)
def parse_merge_msg_for_conflicts(merge_msg):