tag_repos: Clone using https

If ssh keys are not set ssh clone wont work.

Clone using https and push using ssh.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz
2018-04-26 09:08:38 -05:00
parent 8ba7e3c72e
commit 6f560c1c4d

View File

@@ -84,8 +84,9 @@ tag_repos() {
info "Creating tag ${kata_version} in all repos"
for repo in "${repos[@]}"; do
git clone --quiet "git@github.com:${OWNER}/${repo}.git"
git clone --quiet "https://github.com/${OWNER}/${repo}.git"
pushd "${repo}"
git remote set-url --push origin "git@github.com:${OWNER}/${repo}.git"
git fetch origin --tags
if git rev-parse -q --verify "refs/tags/${kata_version}"; then
info "$repo already has tag "