GRAYBYTE WORDPRESS FILE MANAGER3205

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/pre_commit/commands/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/pre_commit/commands//init_templatedir.py
from __future__ import annotations

import logging
import os.path

from pre_commit.commands.install_uninstall import install
from pre_commit.store import Store
from pre_commit.util import CalledProcessError
from pre_commit.util import cmd_output

logger = logging.getLogger('pre_commit')


def init_templatedir(
        config_file: str,
        store: Store,
        directory: str,
        hook_types: list[str] | None,
        skip_on_missing_config: bool = True,
) -> int:
    install(
        config_file,
        store,
        hook_types=hook_types,
        overwrite=True,
        skip_on_missing_config=skip_on_missing_config,
        git_dir=directory,
    )
    try:
        _, out, _ = cmd_output('git', 'config', 'init.templateDir')
    except CalledProcessError:
        configured_path = None
    else:
        configured_path = os.path.realpath(os.path.expanduser(out.strip()))
    dest = os.path.realpath(directory)
    if configured_path != dest:
        logger.warning('`init.templateDir` not set to the target directory')
        logger.warning(f'maybe `git config --global init.templateDir {dest}`?')
    return 0

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 04 2025 08:00:28
root / root
0755
__pycache__
--
April 04 2025 08:00:29
root / root
0755
__init__.py
0 KB
April 04 2025 08:00:28
root / root
0644
autoupdate.py
6.989 KB
April 04 2025 08:00:28
root / root
0644
clean.py
0.419 KB
April 04 2025 08:00:28
root / root
0644
gc.py
2.738 KB
April 04 2025 08:00:28
root / root
0644
hook_impl.py
9.18 KB
April 04 2025 08:00:28
root / root
0644
init_templatedir.py
1.108 KB
April 04 2025 08:00:28
root / root
0644
install_uninstall.py
5.216 KB
April 04 2025 08:00:28
root / root
0644
migrate_config.py
4.057 KB
April 04 2025 08:00:28
root / root
0644
run.py
13.784 KB
April 04 2025 08:00:28
root / root
0644
sample_config.py
0.442 KB
April 04 2025 08:00:28
root / root
0644
try_repo.py
2.518 KB
April 04 2025 08:00:28
root / root
0644
validate_config.py
0.362 KB
April 04 2025 08:00:28
root / root
0644
validate_manifest.py
0.368 KB
April 04 2025 08:00:28
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF