관리-도구
편집 파일: git.cpython-36.pyc
3 �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%ej&e'�Z(ej)d�Z*dd� Z+G dd� de�Z,ej-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 tj| ��S )N)�bool� HASH_REGEX�match)�sha� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/vcs/git.py�looks_like_hash* s r c s� e Zd ZdZdZdZd/Zd0ZdZe dd � �Z dd� Zdd� Ze dd� �Zdd� Ze dd� �Ze dd� �Ze dd� �Zdd� Zdd� Zd d!� Ze d"d#� �Ze d1d%d&��Ze d'd(� �Ze � fd)d*��Ze d+d,� �Ze � fd-d.��Z� ZS )2�Git�gitz.git�clone�git+http� git+https�git+ssh�git+git�git+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 | j t|��\}}|jsdS | j||j�s.dS t| j||j�d �}| S )NFr )�get_url_rev_optionsr r'