Skip to content

Commit 88d82fd

Browse files
resolve commit
1 parent dda927f commit 88d82fd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/gitingest/utils/git_utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import asyncio
66
import base64
77
import re
8+
import sys
89
from pathlib import Path
910
from typing import TYPE_CHECKING, Final, Iterable
10-
import sys
1111
from urllib.parse import urlparse
1212

1313
import httpx
@@ -374,11 +374,7 @@ async def resolve_commit(config: CloneConfig, url: str, token: str | None) -> st
374374
return commit
375375

376376

377-
async def _resolve_ref_to_sha(
378-
url: str,
379-
pattern: str,
380-
token: str | None = None,
381-
) -> str:
377+
async def _resolve_ref_to_sha(url: str, pattern: str, token: str | None = None) -> str:
382378
"""Return the commit SHA that <kind>/<ref> points to in <url>.
383379
384380
* Branch → first line from ``git ls-remote``.

0 commit comments

Comments
 (0)