관리-도구
편집 파일: init_templatedir.cpython-38.pyc
U ,�eo � @ st d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m Z d dl mZ e�d�Z dd d d ddd d�dd�ZdS )� )�annotationsN)�install)�Store)�CalledProcessError)� cmd_outputZ pre_commitT�strr zlist[str] | None�bool�int)�config_file�store� directory� hook_types�skip_on_missing_config�returnc C s� t | ||d||d� ztddd�\}}}W n tk rB d }Y nX tj�tj�|�� ��}tj�|�}||kr�t� d� t� d|� d�� d S ) NT)r � overwriter �git_dir�git�configzinit.templateDirz2`init.templateDir` not set to the target directoryz,maybe `git config --global init.templateDir z`?r ) r r r �os�path�realpath� expanduser�strip�logger�warning) r r r r r �_�outZconfigured_path�dest� r �R/opt/hc_python/lib/python3.8/site-packages/pre_commit/commands/init_templatedir.py�init_templatedir s$ � r )T)� __future__r �logging�os.pathr Z%pre_commit.commands.install_uninstallr Zpre_commit.storer Zpre_commit.utilr r � getLoggerr r r r r r �<module> s �