tea pr checkout fails with path "segment [0] is empty" #444
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#444
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm using tea
0.8.0
and gitea1.15.6
.The ssh server I use for git listens on a port other than
22
. Tea seems to ignore.ss/config
, so I tried to add the port to ssh_host as suggested in #431 (comment) .After doing that I don't get the
no route to host
error anymore, but the following:I also tried adding the port explicitly in
~/.git/config
(and removing the host specific configuration from~/.ssh/config
), which lead to the same error above, whilegit
commands continued working correctly.Oh no.
Can you send us the (redacted) output of
git remote -v
in the repo where you ran that command?And also the (redacted) tea config?
Thanks
Hey @noerw thanks for the reply!
Here are the contents of
~/.config/tea/config.yml
. There were no trailing slashes in any occurence of${REMOTE}
, just in case you were wondering.I can also provide access to the repo if it helps debugging.
The error reported in this issue happens as soon as I add a port to the
ssh_host
line e.g.ssh_host: ${REMOTE}:3333
I see, thanks. I assume it will work when you set
REMOTE=${REMOTE}:3333
for your git remote configuration and teassh_host
value (i.e. don't rely on~/.ssh/config
&~/.gitconfig
).tea embeds its own clients for ssh and git, and it seems they don't make use of that config.
Not sure if it's simpler to add support for these configs to the client libraries, or to switch to native git..
Did this setup work for you with tea 0.7? If so, we may need to revert #391.
Nonetheless, the error
path segment [0] is empty
shouldn't ever be thrown, there's an issue in the URL parsing to be fixed (fwiw: I currently don't have time to work on tea)I tried that too and didn't work. I will give a try to v0.7 once I have some time.
I appreciate that you take the time to even reply.
Using 0.7.1 and setting teas configuration to
ssh_host: ${REMOTE}:3333
leads to a 404:to add: running
tea repo fork
without local repo context also returnsError: path segment [0] is empty