Skip to content

Commit 82253c3

Browse files
Merge pull request #1143 from manueljacob/chore2
chore: remove redundant call to require_command()
2 parents 90f5a17 + 0622511 commit 82253c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/setuptools_scm/hg_git.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from . import _types as _t
1111
from ._run_cmd import CompletedProcess as _CompletedProcess
12-
from ._run_cmd import require_command
1312
from ._run_cmd import run as _run
1413
from .git import GitWorkdir
1514
from .hg import HgWorkdir
@@ -28,7 +27,6 @@ class GitWorkdirHgClient(GitWorkdir, HgWorkdir):
2827

2928
@classmethod
3029
def from_potential_worktree(cls, wd: _t.PathT) -> GitWorkdirHgClient | None:
31-
require_command("hg")
3230
res = _run(["hg", "root"], cwd=wd).parse_success(parse=Path)
3331
if res is None:
3432
return None

0 commit comments

Comments
 (0)