branch: change 2.0-dev to main

Change all mentioning of 2.0-dev to main so that we can rename the
default branch to main.

Fixes: #1310
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao
2021-01-21 15:21:04 +08:00
parent 5aef2faa4d
commit fd5592d4d5
9 changed files with 15 additions and 15 deletions

View File

@@ -144,7 +144,7 @@ main() {
local repo_dir="kata-containers"
git clone --quiet "https://${repo}.git" "${repo_dir}"
pushd "${repo_dir}" >> /dev/null
local branch=$(git branch -r -q --contains "${tag}" | grep -E "master|stable|2.0-dev" | grep -v HEAD)
local branch=$(git branch -r -q --contains "${tag}" | grep -E "master|stable|main" | grep -v HEAD)
popd >> /dev/null
rm -rf ${repo_dir}