Skip to content

Commit

Permalink
Fix curl address for create gitea repo
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Jun 12, 2024
1 parent 385ece6 commit 181f7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/porch-development-environment/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ kubectl wait --namespace gitea statefulset gitea \

############################################
h1 Create git repos in gitea
curl -v -k -H "content-type: application/json" "http://nephio:secret@${gitea_ip}:3000/api/v1/user/repos" --data "{\"name\":\"$git_repo_name\"}"
curl -v -k -H "content-type: application/json" "http://nephio:secret@localhost:3000/api/v1/user/repos" --data "{\"name\":\"$git_repo_name\"}"
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR"
git clone "http://nephio:secret@${gitea_ip}:3000/nephio/$git_repo_name"
git clone "http://nephio:secret@localhost:3000/nephio/$git_repo_name"
cd "$git_repo_name"
if ! git rev-parse -q --verify refs/remotes/origin/main >/dev/null; then
echo "Add main branch to git repo:"
Expand Down

0 comments on commit 181f7f4

Please sign in to comment.