1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 11:37:32 +03:00
vimr/bin/prepare_repositories.sh
2019-12-22 21:45:42 +01:00

23 lines
477 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
echo "### Preparing repositories"
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
# delete all (local) tags
git tag | xargs git tag -d
pushd NvimView/neovim
git tag | xargs git tag -d
popd
# delete all (local) branches
git for-each-ref --format="%(refname:strip=2)" refs/heads/ | xargs git branch -D
git checkout -b for_build
# update neovim
git submodule update --init --force
popd > /dev/null
echo "### Prepared repositories"