Support rebase conflicts in check-merge-conflicts

This commit is contained in:
Anthony Sottile
2017-06-12 10:39:07 -07:00
parent 78818b90cd
commit 6076fd1b15
2 changed files with 14 additions and 2 deletions

View File

@ -15,7 +15,11 @@ WARNING_MSG = 'Merge conflict string "{0}" found in {1}:{2}'
def is_in_merge():
return (
os.path.exists(os.path.join('.git', 'MERGE_MSG')) and
os.path.exists(os.path.join('.git', 'MERGE_HEAD'))
(
os.path.exists(os.path.join('.git', 'MERGE_HEAD')) or
os.path.exists(os.path.join('.git', 'rebase-apply')) or
os.path.exists(os.path.join('.git', 'rebase-merge'))
)
)