Skip to content

Commit cb1ebb5

Browse files
committed
Use cwd instead of passing -C to git
1 parent 295a273 commit cb1ebb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git_evtag_py.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def ensure_submodules_init(repo: Path) -> None:
4949
def ensure_git_rev(tag: str, path: Path) -> str:
5050
sha: str = (
5151
subprocess.check_output(
52-
["git", "-C", str(path), "rev-list", "-n", "1", tag],
52+
["git", "rev-list", "-n", "1", tag],
53+
cwd=path,
5354
env=GIT_ENV,
5455
)
5556
.decode()

0 commit comments

Comments
 (0)