GRAYBYTE WORDPRESS FILE MANAGER7693

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/pydantic/_internal/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/pydantic/_internal//_git.py
"""Git utilities, adopted from mypy's git utilities (https://github.com/python/mypy/blob/master/mypy/git.py)."""

from __future__ import annotations

import os
import subprocess


def is_git_repo(dir: str) -> bool:
    """Is the given directory version-controlled with git?"""
    return os.path.exists(os.path.join(dir, '.git'))


def have_git() -> bool:
    """Can we run the git executable?"""
    try:
        subprocess.check_output(['git', '--help'])
        return True
    except subprocess.CalledProcessError:
        return False
    except OSError:
        return False


def git_revision(dir: str) -> str:
    """Get the SHA-1 of the HEAD of a git repository."""
    return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], cwd=dir).decode('utf-8').strip()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 04 2025 08:00:28
root / root
0755
__pycache__
--
April 04 2025 08:00:28
root / root
0755
__init__.py
0 KB
April 04 2025 08:00:28
root / root
0644
_config.py
12.31 KB
April 04 2025 08:00:28
root / root
0644
_core_metadata.py
3.438 KB
April 04 2025 08:00:28
root / root
0644
_core_utils.py
23.699 KB
April 04 2025 08:00:28
root / root
0644
_dataclasses.py
8.528 KB
April 04 2025 08:00:28
root / root
0644
_decorators.py
31.205 KB
April 04 2025 08:00:28
root / root
0644
_decorators_v1.py
6.058 KB
April 04 2025 08:00:28
root / root
0644
_discriminated_union.py
25.815 KB
April 04 2025 08:00:28
root / root
0644
_docs_extraction.py
3.702 KB
April 04 2025 08:00:28
root / root
0644
_fields.py
14.584 KB
April 04 2025 08:00:28
root / root
0644
_forward_ref.py
0.597 KB
April 04 2025 08:00:28
root / root
0644
_generate_schema.py
102.905 KB
April 04 2025 08:00:28
root / root
0644
_generics.py
21.686 KB
April 04 2025 08:00:28
root / root
0644
_git.py
0.766 KB
April 04 2025 08:00:28
root / root
0644
_internal_dataclass.py
0.141 KB
April 04 2025 08:00:28
root / root
0644
_known_annotated_metadata.py
13.856 KB
April 04 2025 08:00:28
root / root
0644
_mock_val_ser.py
7.144 KB
April 04 2025 08:00:28
root / root
0644
_model_construction.py
30.626 KB
April 04 2025 08:00:28
root / root
0644
_repr.py
4.462 KB
April 04 2025 08:00:28
root / root
0644
_schema_generation_shared.py
4.739 KB
April 04 2025 08:00:28
root / root
0644
_signature.py
6.146 KB
April 04 2025 08:00:28
root / root
0644
_std_types_schema.py
28.204 KB
April 04 2025 08:00:28
root / root
0644
_typing_extra.py
18.975 KB
April 04 2025 08:00:28
root / root
0644
_utils.py
12.364 KB
April 04 2025 08:00:28
root / root
0644
_validate_call.py
3.702 KB
April 04 2025 08:00:28
root / root
0644
_validators.py
10.857 KB
April 04 2025 08:00:28
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF