diff options
| author | Tuowen Zhao <ztuowen@gmail.com> | 2026-04-14 22:13:07 -0700 |
|---|---|---|
| committer | Tuowen Zhao <ztuowen@gmail.com> | 2026-04-14 22:13:10 -0700 |
| commit | c4fde4054a432b06258ad7eb906e225fdf1dc357 (patch) | |
| tree | 4c6f3ce531d6397d9e1da82baa815eb2220c97b7 /bundle-update.sh | |
| parent | e6d46d573c39390edb5b8bc61ba1e116bbeb05a1 (diff) | |
| download | vim-c4fde4054a432b06258ad7eb906e225fdf1dc357.tar.gz vim-c4fde4054a432b06258ad7eb906e225fdf1dc357.tar.bz2 vim-c4fde4054a432b06258ad7eb906e225fdf1dc357.zip | |
Bundle update Tue Apr 14 10:13:07 PM PDT 2026
Diffstat (limited to 'bundle-update.sh')
| -rwxr-xr-x | bundle-update.sh | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/bundle-update.sh b/bundle-update.sh index 578d1e8..28d7185 100755 --- a/bundle-update.sh +++ b/bundle-update.sh @@ -1,15 +1,20 @@ #!/bin/sh wd=$(dirname $0) -path="pack/bundle/start" -branch=$(git branch --show-current) -for i in $(ls $wd/$path); do - pushd $wd/$path/$i - git pull origin $branch - popd > /dev/null -done +cd "$wd" +echo "Syncing submodules..." +git submodule sync --recursive +echo "Updating submodules to latest upstream..." +git submodule update --init --recursive --remote -cd $wd -git add . -git commit -m "Bundle update `date`" +# Clean YCM to ensure a fresh state if needed +if [ -d "pack/bundle/start/YouCompleteMe" ]; then + echo "Cleaning YouCompleteMe..." + (cd pack/bundle/start/YouCompleteMe && git clean -fdx && git checkout .) +fi + +echo "Staging changes..." +git add .gitmodules bundle-update.sh pack/bundle/start/ +git commit -m "Bundle update $(date)" +echo "Update complete." |
