Skip to content

Commit 9ebbb79

Browse files
resolve commit
1 parent a343914 commit 9ebbb79

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/gitingest/utils/git_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import sys
99
from pathlib import Path
1010
from typing import TYPE_CHECKING, Final, Iterable
11-
import sys
1211
from urllib.parse import urlparse
1312

1413
import httpx
@@ -359,11 +358,7 @@ async def resolve_commit(config: CloneConfig, url: str, token: str | None) -> st
359358
return commit
360359

361360

362-
async def _resolve_ref_to_sha(
363-
url: str,
364-
pattern: str,
365-
token: str | None = None,
366-
) -> str:
361+
async def _resolve_ref_to_sha(url: str, pattern: str, token: str | None = None) -> str:
367362
"""Return the commit SHA that <kind>/<ref> points to in <url>.
368363
369364
* Branch → first line from ``git ls-remote``.

0 commit comments

Comments
 (0)