mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Environments are now installed to version-specific locations. Resolves #229
This commit is contained in:
parent
154d918ff1
commit
45d4a195ef
9 changed files with 71 additions and 44 deletions
|
|
@ -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'))
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue