1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00
vimr/bin/prepare_repositories.sh

23 lines
387 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
set -x
2016-10-18 19:00:15 +03:00
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
2016-11-04 23:41:36 +03:00
pushd neovim
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"