|
6 | 6 | import base64
|
7 | 7 | import os
|
8 | 8 | import re
|
9 | | -from typing import Final |
10 | 9 | import sys
|
11 | 10 | from typing import Final
|
12 | 11 | from urllib.parse import urlparse
|
13 | 12 |
|
14 | | -import httpx |
15 | | -from starlette.status import HTTP_200_OK, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND |
16 | | - |
17 | | -from gitingest.utils.compat_func import removesuffix |
18 | | - |
19 | 13 | from starlette.status import (
|
20 | 14 | HTTP_200_OK,
|
21 | 15 | HTTP_301_MOVED_PERMANENTLY,
|
@@ -104,7 +98,7 @@ async def ensure_git_installed() -> None:
|
104 | 98 | raise RuntimeError(msg) from exc
|
105 | 99 | if sys.platform == "win32":
|
106 | 100 | try:
|
107 | | - stdout, _ = await run_command("git", "config", "--global", "core.longpaths") |
| 101 | + stdout, _ = await run_command("git", "config", "core.longpaths") |
108 | 102 | if stdout.decode().strip().lower() != "true":
|
109 | 103 | print(
|
110 | 104 | f"{Colors.BROWN}WARN{Colors.END}: {Colors.RED}Git clone may fail on Windows "
|
|
0 commit comments