depcheck: Fix crates.io cache update
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user