mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix merge conflict detection for cherry-pick conflict.
This commit is contained in:
parent
5a1accd697
commit
c4e4c2dccb
2 changed files with 13 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue