Skip to content

Commit 1b9028b

Browse files
BareninVitalyafilipchristiansen
authored andcommitted
Use 'git config core.longpaths' without level
1 parent 611b54e commit 1b9028b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/gitingest/utils/git_utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,8 @@
99
from pathlib import Path
1010
from typing import TYPE_CHECKING, Final, Iterable
1111
import sys
12-
from typing import Final
1312
from urllib.parse import urlparse
1413

15-
import httpx
16-
from starlette.status import HTTP_200_OK, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND
17-
18-
from gitingest.utils.compat_func import removesuffix
19-
2014
from starlette.status import (
2115
HTTP_200_OK,
2216
HTTP_301_MOVED_PERMANENTLY,
@@ -108,7 +102,7 @@ async def ensure_git_installed() -> None:
108102
raise RuntimeError(msg) from exc
109103
if sys.platform == "win32":
110104
try:
111-
stdout, _ = await run_command("git", "config", "--global", "core.longpaths")
105+
stdout, _ = await run_command("git", "config", "core.longpaths")
112106
if stdout.decode().strip().lower() != "true":
113107
print(
114108
f"{Colors.BROWN}WARN{Colors.END}: {Colors.RED}Git clone may fail on Windows "

0 commit comments

Comments
 (0)