depcheck: Fix crates.io cache update

This commit is contained in:
2022-01-14 16:53:57 +01:00
parent 6e4c388195
commit e45de3b498

View File

@@ -14,7 +14,13 @@ AUTOUPDATE_DISABLED = []
if os.path.exists(INDEX_DIR): if os.path.exists(INDEX_DIR):
subprocess.run( subprocess.run(
["git", "pull", "--depth=1", "origin"], ["git", "fetch", "--depth=1", "origin"],
cwd=INDEX_DIR,
check=True,
capture_output=True,
)
subprocess.run(
["git", "reset", "--hard", "origin/master"],
cwd=INDEX_DIR, cwd=INDEX_DIR,
check=True, check=True,
capture_output=True, capture_output=True,