Helbo
Helbo

Reputation: 505

TFS wrong Clone URL but right connection?

Hi My issue is fairly simple and yet I do not know how to change it.

I've got a TFS server setup with with an address similar to https://someUrl.dk/TFS works when I go to edge or chrome and I can log in and work on it from there no problems.

But when I go to the https://someUrl.dk/TFS/DSSCollection/_git/SomeProject

and click the clone button the clone repo commandline looks like this:

http://computername:8080/tfs/DSSCollection/_git/SomeProject

how do I change so it will report the correct clone url.. to add a little wringle on this. When I go to Visual studio and connect to the server there is the same issue the connection runs on the someUrl.dk but the clone repo still reports to the computername:8080 I would love for that to change to the correct one too.. what is is I am missing ?

Upvotes: 1

Views: 110

Answers (2)

Daniel Mann
Daniel Mann

Reputation: 59016

This is due to your app tier configuration.

The process to update it varies slightly from version to version, but it will definitely involve logging into your application tier server and using the Administration Console. There will probably be a "Change URLs" or "Update URLs" option for your application tier.

Upvotes: 2

VonC
VonC

Reputation: 1324935

I am not sure why the URL is the wrong one, or how to change it at the remote side level when clicking on clone.

But as a workaround, you can try:

git config --global url."http://computername:8080/tfs/".insteadOf https://someurl.dk/TFS/

That should be enough to force Git using the right URL.

Upvotes: 0

Related Questions