Open MohamedTalhaoui opened 1 year ago
If it's makes you feel better, I get this too. We get the below
2023/11/14 16:25:26 Failed to git reset /data/data/vcs-3e0ca7987215362f21e06937b5469422c298cf54, see output below
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Continuing...
all our repos use main
... awkward
Hey gang, I think these are different problems.
@MohamedTalhaoui, it looks like Hound is attempting to fetch that repo, but fails to make an SSH connection (that's what I'm assuming based on kex_exchange_identification
in that error log). Is your repo private, and does an http request work?
@userbradley we updated Hound to look for the default ref and use that if it's set in #345. While git (unfortunately) still defaults to master
, it should detect a default ref if you have one set. If not, try setting the branch to be "main" in your config and see if that works.
@salemhilal you are right, in my case it was definitely a SSH issue. I was not able to find the root cause, I can only see connections to my GitLab private instance are reset. So, I have managed to workaround it by using https and an access token. This is not very secure though, since the access token appears in clear text in the hound config files and all the links generated on the search result page.
Hound seems to issue git commands from outside git directory leading to "fatal: not a git repository" Logs from hound show:
I am running it inside a K8S pod and did the following test:
I am confused because some repo works and other don't.