ef-labs / stash-hook-mirror

An Atlassian Stash repository hook for mirroring to one or more remote git repositories.
MIT License
77 stars 58 forks source link

Won't mirror to TFS 2017 #44

Open holsonjr opened 7 years ago

holsonjr commented 7 years ago

After we upgraded MS TFS to 2017 the plugin stopped mirror to TFS Git repositories. According to what we have discovered it has something to do with TFS 2017 and basic auth.

Any help or ideas would be appreciated.

adrianluisgonzalez commented 7 years ago

Are you using https or the git protocol?

Take a look at the troubleshooting section. Are you able to issue the mirror command directly from your bitbucket server:

git push --prune https://username:password@github.com/englishtown/stash-hook-mirror.git +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*
holsonjr commented 7 years ago

From what I have found so far TFS 2017 will not authenticate with the password included in the URL. I can clone https://username@server/repo_path and then type in a password. If I do clone https://username:password@server/repo_path it throws an authentication error. This worked when we were using TFS 2015.

adrianluisgonzalez commented 7 years ago

Can you use ssh keys with git protocol?