Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
tag_repos: Clone using https
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jcvenegas committed Apr 26, 2018
1 parent 0f06441 commit 31458f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/tag_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 31458f9

Please sign in to comment.