diff --git a/infra/k8s/argo/compile-and-train-template.yaml b/infra/k8s/argo/compile-and-train-template.yaml index b27714add..5b998c77c 100644 --- a/infra/k8s/argo/compile-and-train-template.yaml +++ b/infra/k8s/argo/compile-and-train-template.yaml @@ -179,6 +179,9 @@ spec: REPO="ssh://git@gitlab-gitlab-shell.foxhunt.svc.cluster.local:2222/root/foxhunt.git" BUILD="/cargo-target/src" + # PVC may be owned by a different UID from a previous run + git config --global --add safe.directory "$BUILD" + # Persistent checkout on PVC — only changed files get new mtimes, # so cargo skips recompiling unchanged workspace crates. if [ -d "$BUILD/.git" ]; then