mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
Fix merge conflict detection for cherry-pick conflict.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user