관리-도구
편집 파일: git.cpython-37.pyc
B ��Re�6 � @ s d dl mZ d dlZd dlZd dlZd dlmZ d dl mZ d dl mZ d dl mZmZ d dlmZmZ d dlmZ d dlmZ d d lmZ d d lmZmZmZmZ er�d dlmZm Z d dlm!Z! d d lm"Z"m#Z# e j$Z$e j%Z%e�&e'�Z(e�)d�Z*dd� Z+G dd� de�Z,e�-e,� dS )� )�absolute_importN)�parse)�request)� BadCommand�SubProcessError)�display_path�hide_url)�make_command)� TempDirectory)�MYPY_CHECK_RUNNING)�RemoteNotFoundError�VersionControl�!find_path_to_setup_from_repo_root�vcs)�Optional�Tuple)� HiddenText)�AuthInfo� RevOptionsz^[a-fA-F0-9]{40}$c C s t t�| ��S )N)�bool� HASH_REGEX�match)�sha� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/vcs/git.py�looks_like_hash* s r c s� e Zd ZdZdZdZdZdZdZe dd� �Z d d � Zdd� Ze d d� �Zdd� Ze dd� �Ze dd� �Ze dd� �Zdd� Zdd� Zdd� Ze dd� �Ze d*d d!��Ze d"d#� �Ze � fd$d%��Ze d&d'� �Ze � fd(d)��Z� ZS )+�Git�gitz.git�clone)r zgit+httpz git+httpszgit+sshzgit+gitzgit+file)�GIT_DIR� GIT_WORK_TREE�HEADc C s | gS )Nr )�revr r r �get_base_rev_args: s zGit.get_base_rev_argsc C sJ | � t|��\}}|jsdS | �||j�s.dS t| �||j�d �}| S )NFr )�get_url_rev_optionsr r"