1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +03:00
vimr/bin/prepare_repositories.sh

23 lines
477 B
Bash
Raw Normal View History

2016-10-14 13:15:32 +03:00
#!/bin/bash
2019-12-22 23:45:42 +03:00
set -Eeuo pipefail
2016-10-18 19:00:15 +03:00
2016-10-14 13:15:32 +03:00
echo "### Preparing repositories"
2019-12-22 23:45:42 +03:00
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
2016-10-14 13:15:32 +03:00
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
2019-12-22 23:45:42 +03:00
git tag | xargs git tag -d
2016-11-04 23:41:36 +03:00
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
2019-12-22 23:45:42 +03:00
popd > /dev/null
2016-10-14 13:15:32 +03:00
echo "### Prepared repositories"