Install git-lfs when missing and skip LFS smudge
Browse files- deploy_runpod.py +2 -1
deploy_runpod.py
CHANGED
|
@@ -71,7 +71,8 @@ def make_remote_bootstrap(args: argparse.Namespace) -> str:
|
|
| 71 |
lines = [
|
| 72 |
"set -euo pipefail",
|
| 73 |
"cd /workspace",
|
| 74 |
-
"if ! command -v git >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends git git-lfs; fi",
|
|
|
|
| 75 |
"git lfs install",
|
| 76 |
]
|
| 77 |
if os.environ.get("HF_TOKEN"):
|
|
|
|
| 71 |
lines = [
|
| 72 |
"set -euo pipefail",
|
| 73 |
"cd /workspace",
|
| 74 |
+
"if ! command -v git >/dev/null 2>&1 || ! command -v git-lfs >/dev/null 2>&1; then apt-get update && apt-get install -y --no-install-recommends git git-lfs; fi",
|
| 75 |
+
"export GIT_LFS_SKIP_SMUDGE=1",
|
| 76 |
"git lfs install",
|
| 77 |
]
|
| 78 |
if os.environ.get("HF_TOKEN"):
|