1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00
vimr/bin/prepare_repositories.sh

22 lines
389 B
Bash
Raw Normal View History

2016-10-14 13:15:32 +03:00
#!/bin/bash
2016-10-18 19:00:15 +03:00
set -e
2016-10-14 13:15:32 +03:00
echo "### Preparing repositories"
2016-10-15 10:38:09 +03:00
# delete all (local) tags
2016-10-14 13:15:32 +03:00
git tag | xargs git tag -d
2017-12-07 23:55:59 +03:00
pushd NvimView/neovim
2016-11-04 23:41:36 +03:00
git tag | xargs git tag -d
popd
2016-10-15 10:38:09 +03:00
# delete all (local) branches
2016-10-14 13:15:32 +03:00
git for-each-ref --format="%(refname:strip=2)" refs/heads/ | xargs git branch -D
git checkout -b for_build
2016-10-15 10:38:09 +03:00
# update neovim
2016-10-14 13:15:32 +03:00
git submodule update --init --force
echo "### Prepared repositories"