$ git ls-remote --get-url
also returns Gitea url.
So the issue is that you have two reference branches on the local git, one to gitlab one to gitea and it fails to understand which on is the correct remote ...
I wonder if "git ls-remote --get-url" will always work ?!
It returns Gitlab url as it is pinned to origin.$ git ls-remote --get-url gitea
returns Gitea url.
MinuteGiraffe30 if you are running the following command while your current directory is where you code is, what are you getting?
$ git ls-remote --get-url origin
I don't know if this will always work.
You have correctly describe my issue. How does ClearML select reference branch? Could it be that ClearML only checks "origin" branch?
Hi MinuteGiraffe30
Are you saying that when you are running you code locally with a gitea repository, cleamrl incorrectly adds a link to gitlab ?
How does ClearML select reference branch? Could it be that ClearML only checks "origin" branch?
Yes 😞 I think we can quickly fix that, I'm just trying to realize if there are down sides to running "git ls-remote --get-url" without origin
For Task creation I am using Task.init
in my code. Due to documentation it should make "A link to the running git repository (including commit ID and local uncommitted changes)", however it chooses another repository.