Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 56ce0ed

Browse files
Use 'git config core.longpaths' without level
1 parent e10bfc0 commit 56ce0ed

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
@@ -6,16 +6,10 @@
66
import base64
77
import os
88
import re
9-
from typing import Final
109
import sys
1110
from typing import Final
1211
from urllib.parse import urlparse
1312

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-
1913
from starlette.status import (
2014
HTTP_200_OK,
2115
HTTP_301_MOVED_PERMANENTLY,
@@ -104,7 +98,7 @@ async def ensure_git_installed() -> None:
10498
raise RuntimeError(msg) from exc
10599
if sys.platform == "win32":
106100
try:
107-
stdout, _ = await run_command("git", "config", "--global", "core.longpaths")
101+
stdout, _ = await run_command("git", "config", "core.longpaths")
108102
if stdout.decode().strip().lower() != "true":
109103
print(
110104
f"{Colors.BROWN}WARN{Colors.END}: {Colors.RED}Git clone may fail on Windows "

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /