Skip to content

Commit 01c75b8

Browse files
authored
fix: incorrect working directory for Git command (#849)
1 parent 03f35a4 commit 01c75b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ruff

Submodule ruff updated 961 files

scripts/update_schemastore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def update_schemastore(
7777
# Create a new branch tagged with the current ty commit up to date with the latest
7878
# upstream schemastore
7979
check_call(["git", "fetch", "upstream"], cwd=schemastore_path)
80-
current_sha = check_output(["git", "rev-parse", "HEAD"], text=True).strip()
80+
current_sha = check_output(
81+
["git", "rev-parse", "HEAD"], text=True, cwd=TY_ROOT
82+
).strip()
8183
branch = f"update-ty-{current_sha}"
8284
check_call(
8385
["git", "switch", "-c", branch],

0 commit comments

Comments
 (0)