New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use authentication in GitPreparer.GetRemoteReference
#468
Use authentication in GitPreparer.GetRemoteReference
#468
Conversation
@nulltoken can you have a quick look over this one? |
@@ -164,7 +164,7 @@ static void CreateFakeBranchPointingAtThePullRequestTip(Repository repo, Authent | |||
repo.Checkout(fakeBranchName); | |||
} | |||
|
|||
static IEnumerable<DirectReference> GetRemoteTipsUsingUsernamePasswordCredentials(Repository repo, Remote remote, string username, string password) | |||
public static IEnumerable<DirectReference> GetRemoteTipsUsingUsernamePasswordCredentials(Repository repo, Remote remote, string username, string password) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why public rather than internal
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I overlooked that GitVersionCore internals are visible in GitVersionExe.
Sir! Done, Sir! |
Thanks for your feedback. I now added an overload of |
🆒 Looks 👍 to me. |
Use authentication in `GitPreparer.GetRemoteReference`
Thanks for your help @nulltoken! |
@JakeGinnivan As always, feel free to ping me! |
You already had a helper for this (
GitHelper.GetRemoteTipsUsingUsernamePasswordCredentials
), but it was internal. I made it public.I saw somewhere else that you used
repository.Network.Remotes.Single()
, which fails when there are multiple remotes, so I'm not sure if it's ok that I also used it.