From 7484d752052ed5dca9514c40cb4ed2a8c640e6ca Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 9 Jun 2024 00:00:12 -0400 Subject: [PATCH] GitLab Pipelines: Add script for syncing LFS between comma and sunnypilot This commit adds a new script, 'sync-lfs.sh'. This script assists by syncing the git large file storage (LFS) system. It backs up the current LFS configuration, uses the comma-separated configuration for operations like fetch and pull, and then restores the original configuration before pushing to the origin's main branch. --- release/ci/sync-lfs.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 release/ci/sync-lfs.sh diff --git a/release/ci/sync-lfs.sh b/release/ci/sync-lfs.sh new file mode 100644 index 0000000000..a328724351 --- /dev/null +++ b/release/ci/sync-lfs.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +mv .lfsconfig .lfsconfig.bak +mv .lfsconfig-comma .lfsconfig +git lfs fetch --all; git lfs pull +mv .lfsconfig .lfsconfig-comma +mv .lfsconfig.bak .lfsconfig +git lfs fetch --all; git lfs push origin main