Incorrect repository URL
dlaws2
Posts: 13
I've linked my database to my TFS repository but I'm unable to pull or push from/to the remote repository.
When I attempt to do either I'm asked to enter my credentials in the 'Source control credentials required' dialog, when I do that it returns an error 'Incorrect details'. I know the issue is not due to my username/password but down to the URL of the repository Redgate believes it should be.
The correct repository URL is [url]http://servername:port/tfs[/url] but on the credentials dialog shows [url]http://servername:port/[/url]. If I browse [url]http://servername:port/[/url] I get access denied.
Where does Redgate set the repository URL and can I change it?
When I attempt to do either I'm asked to enter my credentials in the 'Source control credentials required' dialog, when I do that it returns an error 'Incorrect details'. I know the issue is not due to my username/password but down to the URL of the repository Redgate believes it should be.
The correct repository URL is [url]http://servername:port/tfs[/url] but on the credentials dialog shows [url]http://servername:port/[/url]. If I browse [url]http://servername:port/[/url] I get access denied.
Where does Redgate set the repository URL and can I change it?
Tagged:
Comments
RedGate always wants to pull from http://server-name:port/ when really my git repository is at http://server-name:port/tfs/DefaultCollection/blah/_git/Data
For TFS, you should have entered the entire TFS url to your repo. This can include the /tfs item in your setup. Check that tab when your database is selected.
I have voted for it here: https://redgate.uservoice.com/forums/39019-sql-source-control/suggestions/14596167-support-git-hosted-under-tfs
Please read this thread and the comment by Sergio: https://forum.red-gate.com/discussion/80296/sql-source-control-connecting-to-team-services-with-git
"2 - SQL Source Control does not support "git within TFS" currently, precisely due to authentication issues."
Team Services (TFS online) is supported.
https://documentation.red-gate.com/soc6/linking-to-source-control/link-to-git
If you use Git via VSTS, you need to create a Personal access token, then go to SQL Source Control --Link to my source control system -- Git, paste the path of the local repository that you've cloned. Then cick 'Link', and choose access token and put in your Personal access token.
Tianjiao Li | Redgate Software
Have you visited our Help Center?