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.
This commit is contained in:
Jason Wen
2024-06-09 00:00:12 -04:00
parent e36dbe97b5
commit 7484d75205
+7
View File
@@ -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