mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
Environments are now installed to version-specific locations. Resolves #229
This commit is contained in:
@@ -37,9 +37,10 @@ def is_in_merge_conflict():
|
||||
def parse_merge_msg_for_conflicts(merge_msg):
|
||||
# Conflicted files start with tabs
|
||||
return [
|
||||
line.strip()
|
||||
line.lstrip('#').strip()
|
||||
for line in merge_msg.splitlines()
|
||||
if line.startswith('\t')
|
||||
# '#\t' for git 2.4.1
|
||||
if line.startswith(('\t', '#\t'))
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user