uh-cli was passing the full authenticated URL (https://kacerr:TOKEN@gitea.../kacerr/home-kubernetes) to --git-repo. When tea pr create runs inside the cloned workdir it tries to auto-detect the owner/repo by matching the git remote URL against configured logins. The embedded user:token@ in the host breaks that match, so tea can't extract the path and errors with path segment [0] is empty.
Fix
Split credentials out of the URL: store them via git config credential.helper store + ~/.git-credentials
Pass a clean URL (https://gitea.home.hrajfrisbee.cz/kacerr/home-kubernetes) to --git-repo
Tea now sees a plain https://gitea.home.hrajfrisbee.cz/... remote that correctly matches the configured login and resolves kacerr/home-kubernetes
Also adds set -x to the PR step for shell-level tracing in CI logs.
## Problem
`uh-cli` was passing the full authenticated URL (`https://kacerr:TOKEN@gitea.../kacerr/home-kubernetes`) to `--git-repo`. When `tea pr create` runs inside the cloned workdir it tries to auto-detect the owner/repo by matching the git remote URL against configured logins. The embedded `user:token@` in the host breaks that match, so tea can't extract the path and errors with `path segment [0] is empty`.
## Fix
- Split credentials out of the URL: store them via `git config credential.helper store` + `~/.git-credentials`
- Pass a clean URL (`https://gitea.home.hrajfrisbee.cz/kacerr/home-kubernetes`) to `--git-repo`
- Tea now sees a plain `https://gitea.home.hrajfrisbee.cz/...` remote that correctly matches the configured login and resolves `kacerr/home-kubernetes`
Also adds `set -x` to the PR step for shell-level tracing in CI logs.
tea pr create matches the remote URL against the configured login URL to
auto-detect owner/repo. Embedding credentials in the URL (user:token@host)
breaks that match and produces "path segment [0] is empty". Store creds
via git credential helper instead and pass a clean URL to uh-cli.
Also adds set -x to the PR step for shell-level tracing in CI logs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
kacerr
merged commit af030c8255 into main2026-06-12 19:39:31 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
uh-cliwas passing the full authenticated URL (https://kacerr:TOKEN@gitea.../kacerr/home-kubernetes) to--git-repo. Whentea pr createruns inside the cloned workdir it tries to auto-detect the owner/repo by matching the git remote URL against configured logins. The embeddeduser:token@in the host breaks that match, so tea can't extract the path and errors withpath segment [0] is empty.Fix
git config credential.helper store+~/.git-credentialshttps://gitea.home.hrajfrisbee.cz/kacerr/home-kubernetes) to--git-repohttps://gitea.home.hrajfrisbee.cz/...remote that correctly matches the configured login and resolveskacerr/home-kubernetesAlso adds
set -xto the PR step for shell-level tracing in CI logs.